num-utils
A small and simple library for number utility functions
Installation
npm install num-utils
Usage
var nu = ; nu; // => false nu; // => true
Divisibility Functions
nu; // => false nu; // => true nu; // => false
Range Functions
nu; // => true nu; // => true nu; // => 14
Mathematical Functions
nu; // => 15 nu; // => 10 nu; // => 15, any number of arguments nu; // => 3 nu; // => 9, does not include 2,5 nu; // => 14, including 2 and 5 nu; // => 29 nu; // => 30 nu; // => 99
Sorting
nu; // => [ 8, 12,23, 54 ] nu; // => [ 54, 23, 12, 8 ]
Other Calculation Functions
nu; // => 184 nu; // => { '1': 2, '2': 3, '3': 2, '5': 3, '6': 3, '7': 2 } nu; // => true nu; // => false
Tests
npm test