* The opposite of `_.filter` this method returns the elements of a * collection that the callback does **not** return truey for. * * If a property name is provided for `callback` the created "_.pluck" style * callback will return the property value of the given element. *
(collection, callback, thisArg)
| 38946 | * // => [{ 'name': 'fred', 'age': 40, 'blocked': true }] |
| 38947 | */ |
| 38948 | function reject(collection, callback, thisArg) { |
| 38949 | callback = lodash.createCallback(callback, thisArg, 3); |
| 38950 | return filter(collection, function(value, index, collection) { |
| 38951 | return !callback(value, index, collection); |
| 38952 | }); |
| 38953 | } |
| 38954 | |
| 38955 | /** |
| 38956 | * Retrieves a random element or `n` random elements from a collection. |