bare-type
Cross-realm type predicates for Bare.
npm i bare-type
Usage
const type = require('bare-type')
if (type(123).isNumber()) {
console.log(123, 'is a number')
}
API
See the bare-type reference.
Threat model
bare-type is one of the addons Bare compiles into its binary, so it inherits Bare's threat model. See docs/threat-model.md for where this addon sits in it.
License
Apache-2.0