Absolute

@typehero
Last updated 7 months ago
MEDIUM

Implement the Absolute type. A type that take string, number or bigint. The output should be a positive number string

For example

type Test = -100 type Result = Absolute<Test> // expected to be "100"

This challenge was ported from Type Challenges and was authored by bre30kra69cs

More Challenges

Loading...
Loading...