Showing 1-20 of 2,112 packages
This plugin transforms all the ES2015 'instanceof' methods
Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
Create custom JavaScript errors that also match instanceof.
Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
This plugin transforms all the ES2015 'instanceof' methods
The instanceof mechanism cross package/module versions.
Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Disallows use of instanceof operator, useful in TS envs where code relies purely on structural typing (i.e. static typing based on presence of attributes)
Like instanceof, but uses class name strings.
Call your functions using instanceof operator (drunk programming only)
JavaScript all types detection module (crossbrowser)
A controller that writes extended classes' tag names into the "instanceof" attribute.
Define errors without frills, but with stack traces and instanceof support.
Fix for instanceof issues.
Functional instanceof.
HTTP response errors with default message, stacktrace, instanceof, error cause support and more.
I find myself writing `item = item instanceof Array ? item : [item]` a lot, so I decided to make a simple library to does it for me. A few examples:
Check that given value is any type of error and instanceof Error.
This plugin transforms all the ES2015 'instanceof' methods