1.2.1 • Published 9 years ago

to-digits v1.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

to-digits

NPM Version Build Status

Converts a number to an array of its digits.

Install

$ npm install to-digits
var toDigits = require('to-digits');

Usage

toDigits(number)

toDigits(7654); // [7, 6, 5, 4]

toDigits.extend

Use this to extend the native Number.prototype:

Number.prototype.toDigits = toDigits.extend

console.log((456).toDigits()) // [4, 5, 6]
1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago