Search code examples
javascriptnode.jsutility

node.js utility library for working with objects and arrays?


Is there good utility library for working with objects and arrays.

For example functions like: extend, forEach, copying objects/arrays ect,

What is common in node.js environments? I wonder are there decent alternatives to underscore.js?


Solution

  • lodash is a "drop-in replacement* for underscore.js" that you may also want to consider.

    Lo-Dash v0.7.0 has been tested in at least Chrome 5-21, Firefox 1-15, IE 6-9, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.8, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5