Package Exports
- @writetome51/in-numeric-order
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@writetome51/in-numeric-order) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
inNumericOrder(numbers): boolean
If numbers are in ascending order, returns true.
Each item in numbers must be of type 'number'.
Examples
inNumericOrder([1,2,3,4]); // --> true
inNumericOrder([-1.03, -1.02, 0.222, 0.223]); // --> true
inNumericOrder([-10, 5, -11]); // --> false
inNumericOrder([-10, '', -11]);
// --> Error: "Input must be a finite number of type 'number'"Installation
npm i @writetome51/in-numeric-order
Loading
import { inNumericOrder } from '@writetome51/in-numeric-order';