@newdash/newdash
Version:
javascript/typescript utility library
11 lines (10 loc) • 399 B
TypeScript
export default baseFilter;
/**
* The base implementation of `filter` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
*/
declare function baseFilter(collection: any[] | any, predicate: Function): any[];