面试题答案一键面试class Mapper<T, U> { map(arr: T[], transform: (item: T) => U): U[] { return arr.map(transform); } }