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
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
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
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
Additional ESLint rules.
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
Validate the type of object's properties.
Workaround for subclassing errors. Both instanceof and stack are functional.
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
type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等
`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
Inherit from Error without performance penalties, instanceof behaves as expected and the error stack is correct
Type check values. This is a fork of sindresorhus/is, but with CommonJS support.
All values in JavaScript are objects. `typeofObject` gets a value's object type, including custom types.
Function argument validation for humans
- type
- types
- check
- checking
- guard
- guards
- assert
- assertion
- predicate
- predicates
- is
- validate
- validation
- utility
- View more