Advertisement
Guest User

Untitled

a guest
May 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. _.map([1, 2, 3], function(num){ return num * 3; });
  2. //=> [3, 6, 9]
  3. _.map({one: 1, two: 2, three: 3}, function(num, key){ return num * 3; });
  4. //=> [3, 6, 9]
  5. //_.map([[1, 2], [3, 4]], _.first);
  6. => [1, 3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement