(x)
| 929 | |
| 930 | // Context |
| 931 | var predicate = function(x){ return x === this.x; }; |
| 932 | assert.deepEqual(_.partition([1, 2, 3], predicate, {x: 2}), [[2], [1, 3]], 'partition takes a context argument'); |
| 933 | |
| 934 | assert.deepEqual(_.partition([{a: 1}, {b: 2}, {a: 1, b: 2}], {a: 1}), [[{a: 1}, {a: 1, b: 2}], [{b: 2}]], 'predicate can be object'); |
no outgoing calls
no test coverage detected
searching dependent graphs…