Search results
110 packages found
Type check values
Function argument validation for humans
- type
- types
- check
- checking
- guard
- guards
- assert
- assertion
- predicate
- predicates
- is
- validate
- validation
- utility
- View more
Enhances a JavaScript class by adding an is<Class> property to compare types between realms.
A tiny javascript type testing tool
Tests to see if the prototype property of a constructor appears anywhere in the prototype chain of an value.
- instanceof
- instof
- inst-of
- instance-of
- is-instance
- is-instance-of
- instances
- classof
- class-of
- kind
- is-kind
- is-kind-of
- constructor
- memberof
Determine the name of a value's constructor.
Check if a value is an `Error` instance
- browser
- cross-realm
- dom
- error
- error-handle
- error-handler
- error-handlers
- error-handling
- error-monitoring
- error-reporting
- errors
- exception
- exception-handling
- instanceof
- View more
Define errors without frills, but with stack traces and instanceof support.
Test if a value is a regular expression.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- valid
- validate
- regular expression
- regexp
- regex
- is
- View more
Get the type of something. Seriously.
Create custom JavaScript errors that also match instanceof.
Extended JavaScript Type Validator
Implement prototypical inheritance by replacing the prototype of one constructor with the prototype of another constructor.
- stdlib
- stdutils
- stdutil
- utilities
- utility
- utils
- util
- prototype
- inherit
- inherits
- class
- oop
- object-oriented
- inheritance
- View more
compare the type of your value with one or several types
- typeof
- types
- instanceof
- type-of
- test
- check
- typeof-in
- string
- constructor
- name
- number
- object
- array
- function
- View more
Get the type of something. Seriously.
`modern-errors` plugin to execute class-specific logic
- catch
- class
- classes
- errors
- inheritance
- instanceof
- javascript
- library
- mapping
- message
- modern-errors
- modern-errors-plugin
- nodejs
- plugins
- View more
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
- array
- assert
- assertion
- async
- async function
- async-function
- asyncFunction
- bool
- boolean
- browser
- check
- check-type
- checking
- class
- View more
Test whether a value has in its prototype chain a specified constructor as a prototype property.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- prototype
- proto
- inherit
- inherits
- class
- oop
- View more
Allows runtime-check that object implements an interface (missing functionality in TypeScript)