diviser entier en chiffres javascript

var n =  123456789;
var digits = (""+n).split("");
Clear Crab