Search results
110 packages found
Function argument validation for humans
- type
- types
- check
- checking
- guard
- guards
- assert
- assertion
- predicate
- predicates
- is
- validate
- validation
- utility
- View more
Type check values
A tiny javascript type testing tool
Enhances a JavaScript class by adding an is<Class> property to compare types between realms.
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
Define errors without frills, but with stack traces and instanceof support.
Determine the name of a value's constructor.
Get the type of something. Seriously.
Create custom JavaScript errors that also match instanceof.
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
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
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
Get the type of something. Seriously.
Extended JavaScript Type Validator
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
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
Allows runtime-check that object implements an interface (missing functionality in TypeScript)
get the type of a javascript object.
Validate the type of object's properties.