Home Manual Reference Source

Function

Static Public Summary
public

decreasing(a: any, b: any): number

Compare two values in decreasing order using the native comparison and equality operators.

public

increasing(a: any, b: any): number

Compare two values in increasing order using the native comparison and equality operators.

Static Public

public decreasing(a: any, b: any): number source

Compare two values in decreasing order using the native comparison and equality operators.

Params:

NameTypeAttributeDescription
a any

The first parameter.

b any

The second parameter.

Return:

number

1 if a > b, 0 if a === b, and 1 otherwise.

public increasing(a: any, b: any): number source

Compare two values in increasing order using the native comparison and equality operators.

Params:

NameTypeAttributeDescription
a any

The first parameter.

b any

The second parameter.

Return:

number

1 if a < b, 0 if a === b, and 1 otherwise.