UNPKG

fortea

Version:

some tools for js, save your time for a cup of tea

11 lines (10 loc) 338 B
/** * @name map * @description map an array to another array * @param arr input array * @param func map function * @param skipNil skip nil value default true * @returns mapped array */ declare function map<Input, Output>(arr: Input[], func: (item: Input, index: number) => Output, skipNil?: boolean): Output[]; export default map;