过滤
var bigClassData = _.filter(data.Results, function (num) { return num.ClassType == 0; });
var finishTestArr = _.where(testedArr, { MissDataType: 0 });
var scoreArr = _.sortBy(itemObjectScoreArr, 'Score');
var boyMinValue: _.min(scoreArr['boy'])
var numbers = [10, 5, 100, 2, 1000];
_.min(numbers);
=> 2
var boyMinValue: _.max(scoreArr['boy'])
var stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}, {name: 'curly', age: 60}];
_.max(stooges, function(stooge){ return stooge.age; });
=> {name: 'curly', age: 60};
_.forEach
_.map
_.pluck
var stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}, {name: 'curly', age: 60}];
_.pluck(stooges, 'name');
=> ["moe", "larry", "curly"]
_.uniq
_.isNull
_.omit
_.each
var finishTestArr = _.groupBy(testedArr, { MissDataType: 0 });
var finishTestArr =_.groupBy([1.3, 2.1, 2.4], function(num){ return Math.floor(num); });
=> {1: [1.3], 2: [2.1, 2.4]}
参考