]> git.r.bdr.sh - rbdr/dotfiles/blob
cc0c6294e2af14f9adb2df6aaf7f0632102c3270
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = function () {
4 var arr = ['foo', 1], iterator, result;
5 if (typeof arr.values !== 'function') return false;
6 iterator = arr.values();
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 !== 'foo') return false;
12 if (result.done !== false) return false;
13 return true;
14 };