Class: SmartLink

SmartLink

SmartLink class.

Constructor

The SmartLink static class contains methods that return a function along with its closure.
Version:
  • 2017-03-27
Author:
Source:

Methods

(static) getHasRatio(n1, n2) → {function}

Returns positive verb if the number for noun1 times n1 equals the number for noun2 times n2, otherwise negative verb.
Parameters:
Name Type Description
n1 number Number on left hand side.
n2 number Number on right hand side.
Source:
Returns:
Function hasRatio.
Type
function

(static) getIsLessBy(n) → {function}

Returns positive verb if the number for noun1 is exactly n less than the number for noun2, otherwise negative verb.
Parameters:
Name Type Description
n number Number.
Source:
Returns:
Function isLessBy.
Type
function

(static) getIsLessThan(n) → {function}

Returns positive verb if the number for noun1 is less than the number for noun2 minus n, otherwise negative verb. For n = 1, this means "before, but not just before."
Parameters:
Name Type Description
n number Number.
Source:
Returns:
Function isLessThan.
Type
function

(static) getIsMoreBy(n) → {function}

Returns positive verb if the number for noun1 is exactly n more than the number for noun2, otherwise negative verb.
Parameters:
Name Type Description
n number Number.
Source:
Returns:
Function isMoreBy.
Type
function

(static) getIsMoreThan(n) → {function}

Returns positive verb if the number for noun1 is more than the number for noun2 plus n, otherwise negative verb. For n = 1, this means "after, but not just after."
Parameters:
Name Type Description
n number Number.
Source:
Returns:
Function isMoreThan.
Type
function

(static) getIsNextTo() → {function}

Returns positive verb if the number for noun1 is exactly 1 less or 1 more than the number for noun2, otherwise negative verb.
Source:
Returns:
Function isNextTo.
Type
function

(static) getIsOffsetBy(n) → {function}

Returns positive verb if the number for noun1 is exactly n less than or n more than the number for noun2, otherwise negative verb. Equivalent to isNextTo when n is one.
Parameters:
Name Type Description
n number Number.
Source:
Returns:
Function isOffsetBy.
Type
function

(static) getIsOutsideOf(n) → {function}

Returns positive verb if the number for noun1 is either n less than or n more than the number for noun2, otherwise negative verb.
Parameters:
Name Type Description
n number Number.
Source:
Returns:
Function isOutsideOf.
Type
function

(static) getIsWith() → {function}

Returns positive verb if both nouns are equal (i.e., are the same noun), otherwise negative verb.
Source:
Returns:
Function isWith.
Type
function