Repository navigation

#

typeof

Get the native JavaScript type of a value, fast. Used by superstruct, micromatch and many others!

JavaScript
354
1 年前

Curried property accessor function that resolves deeply-nested object properties via dot/bracket-notation string path while mitigating TypeErrors via friendly and composable API.

JavaScript
197
1 个月前

Is the value an object, and not an array or null?

JavaScript
107
1 年前

Typeis. it's the smart and simple javaScript type checker

JavaScript
93
4 年前

Is the typeof value a javascript primitive?

JavaScript
37
5 年前

TypeScript typeof utility helper with no dependencies.

TypeScript
9
1 年前

✍🏿Get the exact type of a value

TypeScript
7
2 年前

✔️JavaScript类型检查,弥补typeof不足

JavaScript
6
7 年前

Simple functionality alternative to check data type references such as typeof and instanceof.

TypeScript
6
3 年前

Jest matcher that allows you to test the expected type of value.

JavaScript
6
3 年前

Check native type of the given value and throw TypeError if not okey. Expressive, elegant, behavior-driven API, good descriptive default error messages, simple and clean syntax.

JavaScript
4
3 年前

Detects precise type of objects like `Array()`, `new Number(1)`, `new Boolean(true)`, etc

JavaScript
4
7 年前

👻 only 0.25 kb. what.js is a simple library to get the type of variables. enganced typeof function.

JavaScript
3
9 年前

👺 weak but accurate type checking that returns a string representation of input's type

JavaScript
3
2 年前

Can be used to distinguish between these types: boolean, number, string, function, array, date, regexp, object, error.

JavaScript
2
8 年前