Open this example in the interactive library
Source code
const words = ["build", "ship", "test"];
console.log((<T,>(value: T): T[] => [value])("ready"));
Sample output
[ 'ready' ]

Open this example in the interactive library
const words = ["build", "ship", "test"];
console.log((<T,>(value: T): T[] => [value])("ready"));
[ 'ready' ]