Is there a way to convert a plain array into an array of wrapped items in JavaScript?
declare type MyGenericArray = [number, string, boolean]
declare type WrappedGeneraicArray = Wrap<MyGenericArray>
// WrappedGeneraicArray = [Wrapped<number>, Wrapped<string>, Wrapped<boolean>]
type Wrap = ??
I have attempted using the keyof
operator but it seems to only work with objects and not arrays.