digits(n, [base, [pad]]): returns an array of digits of n [close #2737]