Answers for "separate digits in javascript"

0

separate digits in javascript

const n = 123456;
Array.from(n.toString()).map(Number);
// [1, 2, 3, 4, 5, 6]
Posted by: Guest on February-23-2021

Code answers related to "separate digits in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language