383 packages found
Determine if the JS environment has Symbol support. Supports spec, or shams.
Get the native type of a value.
Improved typeof detection for node.js and the browser.
Determine if the JS environment has BigInt support.
Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.
Returns true if an object was created by the `Object` constructor, or Object.create(null).
Function argument validation for humans
- type
- types
- check
- checking
- guard
- guards
- assert
- assertion
- predicate
- predicates
- is
- validate
- validation
- utility
- View more
Type check values
Checks whether provided parameter looks like a number
Returns true if the value is an object and not an array or null.
Cross-browser type assertions (less broken typeof)
Determine and test types using constructor or {}.toString
Test if a value is object-like.
Detect native Symbol.toStringTag support.
- stdlib
- stdutils
- stdutil
- utilities
- utility
- utils
- util
- detect
- feature
- symbol
- tostringtag
- class
- type
- typeof
- View more
Determine the specification defined classification of an object.
- stdlib
- stdutils
- stdutil
- utilities
- utility
- utils
- util
- type
- typeof
- native
- class
- classification
- specification
- spec
- View more
A proper typeof that works with primitives, built-in value objects and those from other execution contexts.
Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript
A simple set of functions that return a boolean.