@anio-js-foundation/is-primitive
v2.0.0
Published
Check if a given value is a primitive or not.
Downloads
2
Readme
@anio-js-foundation/is-primitive
Check if a given value is a primitive or not.
import isPrimitive from "@anio-js-foundation/is-primitive"
// prints true
console.log(isPrimitive("abc"))
// prints false
console.log(isPrimitive(new String("abc")))