8 lines
292 B
TypeScript
Executable file
8 lines
292 B
TypeScript
Executable file
/**
|
|
* 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[];
|