import { ArrPred } from '../typings/types'; interface GroupBy { (fns: ArrPred[], list: ArrayLike): T[][]; (fns: ArrPred[]): (list: ArrayLike) => T[][]; } /** * Creates an array of arrays generated from the results of running * each element of list thru each `fn`. The corresponding * value of each index is an array of elements satisfies to function with that index, and * the last array is elements with no satisfied function * * @param {Array} fns The functions to check values in a list. * @param {Array} list The list to iterate over. * @returns {Array} Returns the composed array. * @example * * groupBy([isPositive, isZero, isNegative], [0, -3, 2, 'str', 4, -1]);// => [[2,4], [0], [-3, -1], ['str']] */ declare const _default: GroupBy; export default _default;