UNPKG

locutus

Version:

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

11 lines (10 loc) 324 B
import type { PhpArrayLike } from '../_helpers/_phpTypes.ts'; interface EachResultObject<T> { 0: string | number; 1: T; key: string | number; value: T; } type EachResult<T> = [string | number, T] | EachResultObject<T> | false; export declare function each<T>(arr: PhpArrayLike<T>): EachResult<T>; export {};