locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
6 lines (5 loc) • 329 B
TypeScript
import type { PhpRuntimeValue } from '../_helpers/_phpTypes.ts';
type SortValue = PhpRuntimeValue;
type SortFlag = 'SORT_REGULAR' | 'SORT_NUMERIC' | 'SORT_STRING' | 'SORT_LOCALE_STRING';
export declare function sort<T extends SortValue>(inputArr: Record<string, T>, sortFlags?: SortFlag): boolean | Record<string, T>;
export {};