0
0
GGGiovanny Gongora
Converts a number to an array of digits, removing its sign if necessary.
const digitize = (n: number) => [...`${Math.abs(n)}`].map(i => parseInt(i));
0
0
GGGiovanny Gongora
Converts a number to an array of digits, removing its sign if necessary.
const digitize = (n: number) => [...`${Math.abs(n)}`].map(i => parseInt(i));