Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

112 B
Raw Blame
const identity = <T>(input: T) => input;

const mapArray = <T, U>(arr: T[], fn: (item: T) => U) => arr.map(fn);