import predicateType from '../helpers/predicateType'; /** * The opposite of `filter`, this method returns an array of all elements for which * the `predicate` function returns a falsy value. * * @since 1.0.0 * * @template T - The type of the input array elements * @param {T[]} collection - The input collection * @param {Function} [predicate=identity] - The function invoked per iteration * @returns {any[]} - Returns the new filtered array * * @example * * const users = [ * { 'user': 'barney', 'active': true }, * { 'user': 'fred', 'active': false } * ]; * * reject(users, ({ active }) => active); * // => [{ 'user': 'fred', 'active': false }] */ declare const reject: (collection: T[], predicate?: predicateType) => any[]; export default reject;