Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@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
}

Install

npm i @sovpro/split-num

DownloadsWeekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

4.02 kB

Total Files

4

Last publish

Collaborators

  • avatar