16 packages found
Returns true if the value is an object and not an array or null.
Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.
List of all javascript types. Used and useful for checking, validation, sanitizing and testing. Like isStream, isPromise, isWeakset and etc.
- bool
- boolean
- buffer
- check
- checking
- error
- is
- is-boolean
- is-buffer
- is-error
- is-promise
- is-stream
- json
- kind
- View more
👺 weak but accurate type checking that returns a string representation of input's type
- type
- types
- coerce
- coercion
- checker
- check
- flow
- typing
- typeof
- typeov
- detection
- ispromise
- isnumber
- isinfinity
- View more
Thin sugar layer on top of `testit` framework, `is-kindof` and `assert`.
Better 'typeof'. Detects real type of the objects like 'Array()', 'new Number(1)', 'new Boolean(true)', etc.
Check native type of value and throw AssertionError if not okey. Clean stack traces. Simplicity. Built on [is-kindof][].
- assert
- assertion
- check
- checking
- checktype
- clean
- cleanstack
- err
- error
- kind
- kindof
- kinds
- simple
- simplicity
- View more
Check type of given javascript value. Support promises, generators, streams, and native types. Built on [kind-of][] lib.
Use abbreviations for checking type of given value. Like `kindof(val, 'soa')` to check that value is string, object or array.
how to typeof easily
- JavaScript
- ECMAScript
- type
- typeof
- kindof
- is
- is-type
- arrow function
- values
- parameters
- check
- type check
- type-check
- check types
- View more
Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.
You can get the real type of values (i.e. array, null, object, map, set, etc.)
Plugin for [minibase][] and [base][], that adds assertion methods - most of [assert-kindof][] methods and built-ins assert module.
An extension to the `mout/lang` utilities
- AMD
- bugfix
- camelCase
- check
- checks
- CJS
- CommonJS
- ECMAScript
- ES
- extension
- fix
- instanceOf
- isKind
- isPrimitive
- View more
Base class for easily creating meaningful and quiet by default Error classes with sane defaults and assertion in mind.
ECMAScript 2015 compliant typeof extension