Collection Functions (Arrays or Objects) each _.each(list, iterator, [context]) 遍历list中的所有元素,如果传递了context参数,则把iterator绑定到context对象上.iterator的参数是 (value, key, list)).返回list以方便链式调用. _.each([1, 2, 3], alert); => alerts each number in turn... map…
// Array Functions // --------------- // Get the first element of an array. Passing **n** will return the first N // values in the array. Aliased as `head` and `take`. The **guard** check // allows it to work with `_.map`. /* 返回array(数组)的第一个元素.传递 n参数…