ferllop 9080836b59
feat: add test case for '-.3' in 05140-Trunc (#33403)
Co-authored-by: Ferran Llop <contacto@ferranllop.com>
2024-06-01 18:48:50 +02:00
..

Trunc medium #template-literal

by jiangshan @jiangshanmeta

Take the Challenge

Implement the type version of Math.trunc, which takes string or number and returns the integer part of a number by removing any fractional digits.

For example:

type A = Trunc<12.34> // 12

Back Share your Solutions Check out Solutions