Ramda Adjunct 2.32.0

Global

Methods

isNotPrimitive(val) → {boolean}

Source:
Since:
Signature:
  • * -> Boolean
Category:
  • Type
See also:

Checks if value is not a primitive data type. There are 6 primitive data types: string, number, bigint, boolean, undefined, symbol and a special case of null.

Example
RA.isNotPrimitive(new String("string")); //=> true
RA.isNotPrimitive(new Number(1)); //=> true
RA.isNotPrimitive("string"); //=> false
RA.isNotPrimitive(1); //=> false
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
boolean

isPrimitive(val) → {boolean}

Source:
Since:
Signature:
  • * -> Boolean
Category:
  • Type
See also:

Checks if value is a primitive data type. There are 6 primitive data types: string, number, bigint, boolean, undefined, symbol and a special case of null. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Primitive_values for definition of what sub-types comprise a primitive.

Example
RA.isPrimitive("string"); //=> true
RA.isPrimitive(1); //=> true
RA.isPrimitive(new String("string")); //=> false
RA.isPrimitive(new Number(1)); //=> false
Parameters:
Name Type Description
val *

The value to test

Returns:
Type
boolean