Implement the JavaScript Array.concat function in the type system. A type takes the two argument
Implement the built-in Exclude<T, U>
Exclude from
Tthose types that are assignable toU
Implement a generic First<T> that takes an Array T and returns its first element's type.
For
Implement the util type If<C, T, F> which accepts condition C, a truthy value T, and a falsy
Implement the JavaScript Array.includes function in the type system. A type takes the two argume
Default generic arguments allow you to optionally pass a generic argument.
Implement BinaryAdd to add two binary numbers together. The numbers should not be translated out
Implement BinaryToDecimal<S> which takes an exact string type S consisting 0 and 1 and returns
Implement BitwiseXOR<S1,S2> which takes two binary string literal type and returns a binary
There is a function in C language: printf. This function allows us to print something with forma
Implement CamelCase<T> which converts snake_case string to camelCase.
For example
ty
Implement the Absolute type. A type that take string, number or bigint. The output should be a p
Sometimes we want to use the good old for-loop with an index to traverse the array, but in this