]> git.r.bdr.sh - rbdr/dotfiles/blob
06bd87bf296c15ff79d86dae9ded9090003b8291
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = function () {
4 var arr = [1, 'foo'], iterator, result;
5 if (typeof arr.keys !== 'function') return false;
6 iterator = arr.keys();
7 if (!iterator) return false;
8 if (typeof iterator.next !== 'function') return false;
9 result = iterator.next();
10 if (!result) return false;
11 if (result.value !== 0) return false;
12 if (result.done !== false) return false;
13 return true;
14 };