stdlib-js

stdlib-js/utils-constructor-name

Determine the name of a value's constructor.

JavaScript
2
0
Apache License 2.0

The **@stdlib/utils-constructor‑name** package provides a single utility function that returns the name of an object’s constructor (e.g., `"Array"`, `"Number"`, custom class names, etc.), handling primitives, built‑ins, typed arrays, Node.js buffers, and ES‑2015 types while returning an empty string for anonymous constructors. It is intended for developers using the Stdlib JavaScript ecosystem—both in Node.js and browser environments—who need a reliable, cross‑environment way to identify the constructor type of any value.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of stdlib-js/utils-constructor-name

Account's avatar
Test if a value is a Buffer object.
Account's avatar
Return a regular expression to capture a function name.
Account's avatar
Determine the specification defined classification of an object.
Account's avatar
Uint8ClampedArray.
Account's avatar
Detect native Map support.
Account's avatar
Detect native Set support.
Account's avatar
Detect native Symbol support.
Account's avatar
Detect native WeakMap support.
Account's avatar
Detect native WeakSet support.
Account's avatar
Test if a value is a string.
Account's avatar
Boolean constructor.
Account's avatar
Allocate a buffer containing a provided string.
Account's avatar
Number constructor.
Account's avatar
Proxies nodejs require in order to allow overriding dependencies during testing.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use ca
Account's avatar
Minimal TAP output formatter.
Account's avatar
Benchmark harness.

Support the repos that depend on this repository

Top contributors

stdlib-bot's profile
stdlib-bot
72 contributions
Planeshifter's profile
Planeshifter
1 contributions

Recent events

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

No events yet