UNPKG

locutus

Version:

Locutus other languages' standard libraries to JavaScript for fun and educational purposes

7 lines (6 loc) 434 B
import type { PhpRuntimeValue } from '../_helpers/_phpTypes.ts'; type SortValue = PhpRuntimeValue; type SortFlag = 'SORT_REGULAR' | 'SORT_NUMERIC' | 'SORT_STRING' | 'SORT_LOCALE_STRING'; export declare function asort<T extends SortValue>(inputArr: T[], sortFlags?: SortFlag): boolean | T[]; export declare function asort<T extends SortValue>(inputArr: Record<string, T>, sortFlags?: SortFlag): boolean | Record<string, T>; export {};