is-primitive-x
Returns true if the value is a primitive.
Last updated 5 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-primitive-x 
SYNC missed versions from official npm registry.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

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

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE