Package Exports
- is-primitive-x
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-primitive-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-primitive-x
Returns true if the value is a primitive.
module.exports
⇒ *
⏏
Returns true if the value is a primitive.
Kind: Exported member
Returns: *
- The value to test.
Param | Type | Description |
---|---|---|
[val] | * |
The value to test. |
Example
import isPrimitive from 'is-primitive-x';
console.log(isPrimitive()); // true
console.log(isPrimitive(42)); // true
console.log(isPrimitive('abc')); // true
console.log(isPrimitive(Symbol())); // true
console.log(isPrimitive({})); // false
console.log(isPrimitive([])); // false
console.log(isPrimitive(function() {})); // false
console.log(isPrimitive(new Date())); // false