3 ms·
No need to insult JavaScript. In two out of three times the "JavaScript" written will be something like: interface Box<T> { value: T } function map<T,
by kfuse 2mo ago
No need to insult JavaScript. In two out of three times the "JavaScript" written will be something like:
interface Box<T> { value: T }
function map<T, U>(input: Box<T>, func: (value: T) => U): Box<U> {
return { value: func(input.value) }
}