您的位置:首页 > 移动开发 > Objective-C

underscore.js _.values[Object]

2012-04-16 21:31 337 查看
Return all of the values of the object's properties.

返回对象的所有属性的值

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


源码:

_.values = function(obj) {
return _.map(obj, _.identity);
};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: