@sz-sw-le0/unwrap-primitive-object
v1.0.0
Published
Tries to unwrap a primitive object.
Downloads
2
Readme
unwrap-primitive-object
Tries to unwrap a primitive object.
Example usage:
const unwrapPrimitiveObject = require("unwrap-primitive-object")
const object = new String("ACME")
console.log(typeof(unwrapPrimitiveObject(object))) // "string"