@sz-sw/unwrap-p
v1.0.0
Published
Unwraps a primitive object:
Downloads
2
Readme
@sz-sw/unwrap-p
Unwraps a primitive object:
const unwrap = require("@sz-sw/unwrap-p")
console.log(typeof unwrap(new Number(3)) === "number") // true
console.log(unwrap(new Number(3)) === 3) // true