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