X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FiteratorToArray.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FiteratorToArray.js;h=476856647c66d06d0175c0c52af15a654b0c2cdf;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/internal/iteratorToArray.js b/node_modules/uncss/node_modules/lodash/internal/iteratorToArray.js new file mode 100644 index 000000000..476856647 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/internal/iteratorToArray.js @@ -0,0 +1,18 @@ +/** + * Converts `iterator` to an array. + * + * @private + * @param {Object} iterator The iterator to convert. + * @returns {Array} Returns the converted array. + */ +function iteratorToArray(iterator) { + var data, + result = []; + + while (!(data = iterator.next()).done) { + result.push(data.value); + } + return result; +} + +module.exports = iteratorToArray;