Showing 1-20 of 2,037 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
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)
The instanceof mechanism cross package/module versions.
Call your functions using instanceof operator (drunk programming only)
Like instanceof, but uses class name strings.
A controller that writes extended classes' tag names into the "instanceof" attribute.
Fix for instanceof issues.
Define errors without frills, but with stack traces and instanceof support.
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
is-any-type simple functionality alternative to check data type references such as typeof and instanceof