Typescript, Generics, Polymorphism.
based on this kind of type: type ArrayTransformer<T> = (input: T[]) => T[]; // Using the type alias to declare a function const reverseArray: ArrayTransformer<number> = (input) => { return input.slice().reverse(); }; const concatenateArrays: ArrayTransformer<string> = (input) => { return [...input,