convert an integer into an array of digits in JavaScript | using the spread operator

Published --