]> git.r.bdr.sh - rbdr/dotfiles/blob
f5c462deb9106422c08faf768b5c4400d7682b6d
[rbdr/dotfiles] /
1 'use strict';
2
3 var iteratorSymbol = require('es6-symbol').iterator;
4
5 module.exports = function () {
6 var str = '🙈f', iterator, result;
7 if (typeof str[iteratorSymbol] !== 'function') return false;
8 iterator = str[iteratorSymbol]();
9 if (!iterator) return false;
10 if (typeof iterator.next !== 'function') return false;
11 result = iterator.next();
12 if (!result) return false;
13 if (result.value !== '🙈') return false;
14 if (result.done !== false) return false;
15 return true;
16 };