@sovpro/split-num

1.0.6 • Public • Published

Split Number

Split an integer number into an array or iterable value of single-digit numbers.

Build status for Node.js 4.x and newer

Split into an array

let split_num = splitNum (123)

Split into an iterable value

let split_iterable = splitNum.lazy (123)
for (let digit of split_iterable) {
  // ... do stuff with digit
}

Package Sidebar

Install

npm i @sovpro/split-num

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

4.02 kB

Total Files

4

Last publish

Collaborators

  • sovpro