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

@sovpro/get-digit

1.1.2 • Public • Published

Get Digit

Get a digit value from an integer number.

Build status for Node.js 4.x and newer

let value = getDigit (4, 123456789)
// value will be: 6

Specify a base

// get base 5 digit 3 from value 25
let value = getDigit.base (5, 3, 25)
// value will be: 1

Install

npm i @sovpro/get-digit

DownloadsWeekly Downloads

3

Version

1.1.2

License

MIT

Unpacked Size

3.91 kB

Total Files

4

Last publish

Collaborators

  • avatar