kongdeqiang
2023-02-17 ac94b1d939373a684344764e5b00dac44feabd81
1
2
3
4
5
6
7
/**
 * Simple non-mutating sorting function for arrays of objects by a property
 * @param {Array} array to sort
 * @param {Function} propFn fetches the property by which to sort
 * @return {Array} a new sorted array
 */
export declare const sortBy: (array: any[], propFn: Function) => any[];