1
稀有有用lodash资源的
我一个我发现这个为例LoDash _.invokeMap()参数
var object = {
firstName: 'Fredrick',
lastName: 'Townsend',
first: function() {
return this.firstName;
},
last: function() {
return this.lastName;
}
};
var methods = _.map(_.functions(object), function(item) {
return [ _.bindKey(object, item) ];
});
_.invokeMap(methods, 0);
我不理解的第二个参数(0)invokeMap
的