Return all of the values of the object's properties.

返回对象的所有属性的值

1 _.values({one : 1, two : 2, three : 3});
2 => [1, 2, 3]

源码:

1 _.values = function(obj) {
2     return _.map(obj, _.identity);
3   };

 

 

 

 

 

posted on 2012-04-16 21:31  himanhimao  阅读(225)  评论(0编辑  收藏  举报