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