Elementals.js

Latest Version: 2.0 RC 3 14 March 2017

Method _.compareNumeric

Summary:

Compares two numbers.

Calling Convention:
_.compareNumeric(Number, Number)
Parameters:
Number
Your Number to be compared. If a non-number value is passed it will be treated as zero.
Returns:
second number minus first number

The various compare functions stored in elementals are meant as easy callbacks for use with _.uSortElement.