Imed Jaberi 28908902ce
Improve the questions sub-folders names (#8850)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-19 12:04:56 +08:00

1.3 KiB

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