Namespace: check

just.check(value, ...otherValuesopt) → {boolean}

Checks if value looks like the other values.
Source:
just.js, line 398

Parameters:

NameTypeDescription
value
AnyComparison value.
otherValues
[optional] [repeatable]
AnyValues to check against.

Returns:

`true` if some other value looks like value.
Type
boolean

Example

just.check(null, {}, "null", []); // false. Neither is `null`.
just.check({}, [], {}); // true. {} is {}.

Methods

throwable(value, ...otherValuesopt) → {value}

A function that checks a value against others and throws if the result is `false`.
Deprecated:
Since 1.0.0-rc.24
Source:
just.js, line 434
This:

just.check~throwable_message

Parameters:
NameTypeDescription
value
AnyComparison value.
otherValues
[optional] [repeatable]
AnyValues to check against.
Throws:
If check returns `false`.
Type
TypeError
Returns:
value if check returns `true`.
Type
value

Type Definitions

throwable_message

A custom message to throw.
Source:
just.js, line 415
Type:

string