Elementals.js

Latest Version: 3.0 RC 1 17 July 2017

Method _.Compare.numeric

Summary:

Compares two numbers.

Calling Convention:
_.Compare.numeric(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 _.USort.element.

Advertisement