UNPKG

cpt-waffle-lotide

Version:
10 lines (8 loc) 168 B
const map=<T>(array:T[], cb:(arg:T) => T) => { const result:T[] = []; array.forEach((item:T) => { result.push(cb(item)) }); return result; } export default map;