inspect-js

inspect-js/which-boxed-primitive

Which kind of boxed JS primitive is this?

JavaScript
7
3
MIT License

This project is a JavaScript module that detects which kind of boxed primitive an object is, returning the constructor name (e.g., 'Boolean', 'Number', 'String', 'Symbol', 'BigInt') for boxed primitives and `null` for unboxed primitives or `undefined` for non-primitive objects. It's designed for developers working with JavaScript who need reliable type detection across different realms/iframes without relying on `instanceof` or mutable properties.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of inspect-js/which-boxed-primitive

Account's avatar
Is this value an ES BigInt?
Account's avatar
Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Account's avatar
Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Account's avatar
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Account's avatar
Determine if a value is an ES6 Symbol or not.
Account's avatar
A CLI tool for arethetypeswrong.github.io
Account's avatar
My shareable eslint config
Account's avatar
My personal tsconfig(s), so my open source projects can share them.
Account's avatar
TypeScript definitions for for-each
Account's avatar
TypeScript definitions for object-inspect
Account's avatar
TypeScript definitions for tape
Account's avatar
Command line tool for generating a changelog from git tags and commit history
Account's avatar
Convert encodings, uses iconv-lite
Account's avatar
Fixtures of ES values, for testing purposes
Account's avatar
A better forEach
Account's avatar
Detect if we were run as a result of `npm publish`
Account's avatar
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
the Istanbul command line interface
Account's avatar
string representations of objects in node and the browser
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
TypeScript is a language for application scale JavaScript development

Support the repos that depend on this repository

Top contributors

ljharb's profile
ljharb
60 contributions
sinclairzx81's profile
sinclairzx81
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet