RA

RA

Source:

Methods

(static) isArray(val) → {Boolean}

Source:
Since:
  • v0.3.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is Array

Example
RA.isArray([]); //=> true
RA.isArray(null); //=> false
RA.isArray({}); //=> false
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isBoolean(val) → {Boolean}

Source:
Since:
  • v0.3.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is Array

Example
RA.isBoolean(false); //=> true
RA.isBoolean(true); //=> true
RA.isBoolean(null); //=> false
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isNotArray(val) → {Boolean}

Source:
Since:
  • v0.3.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is complement of Array

Example
RA.isNotArray([]); //=> false
RA.isNotArray(null); //=> true
RA.isNotArray({}); //=> true
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isNotBoolean(val) → {Boolean}

Source:
Since:
  • v0.3.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is complement of Boolean

Example
RA.isNotBoolean(false); //=> false
RA.isNotBoolean(true); //=> false
RA.isNotBoolean(null); //=> true
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isNotNil(val) → {Boolean}

Source:
Since:
  • v0.3.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is complement of null or undefined

Example
RA.isNotNil(null); //=> false
RA.isNotNil(undefined); //=> false
RA.isNotNil(0); //=> true
RA.isNotNil([]); //=> true
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isNotNull(val) → {Boolean}

Source:
Since:
  • v0.1.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is complement of null

Example
RA.isNotNull(1); //=> true
RA.isNotNull(undefined); //=> true
RA.isNotNull(null); //=> false
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isNotUndefined(val) → {Boolean}

Source:
Since:
  • v0.0.1
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is complement undefined

Example
RA.isNotUndefined(1); //=> true
RA.isNotUndefined(undefined); //=> false
RA.isNotUndefined(null); //=> true
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isNull(val) → {Boolean}

Source:
Since:
  • v0.1.0
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is null

Example
RA.isNull(1); //=> false
RA.isNull(undefined); //=> false
RA.isNull(null); //=> true
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean

(static) isUndefined(val) → {Boolean}

Source:
Since:
  • v0.0.1
Signature:
  • * -> Boolean
Category:
  • Type
See:

Checks if input value is undefined

Example
RA.isUndefined(1); //=> false
RA.isUndefined(undefined); //=> true
RA.isUndefined(null); //=> false
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
Boolean