Collection of 70+ type, feature & value checks
npm install @thi.ng/checks
!npm downloads

> [!NOTE]
> This is one of 214 standalone projects, maintained as part
> of the @thi.ng/umbrella monorepo
> and anti-framework.
>
> 🚀 Please help me to work full-time on these projects by sponsoring me on
> GitHub. Thank you! ❤️
- About
- Status
- Installation
- Dependencies
- API
- Authors
- License
Collection of 70+ type, feature & value checks.
- exists
- existsAndNotNull
- hasBigInt
- hasCrypto
- hasMaxLength
- hasMinLength
- hasPerformance
- hasWASM
- hasWebGL
- hasWebSocket
- implementsFunction
- isASCII
- isAlpha
- isAlphaNum
- isArray
- isArrayBufferLike
- isArrayBufferView
- isArrayLike
- isAsyncIterable
- isBigInt
- isBlob
- isBoolean
- isChrome
- isDarkMode
- isDataURL
- isDate
- isEven
- isFalse
- isFile
- isFirefox
- isFloatString
- isFunction
- isGenerator
- isHex
- isHexColor
- isIE
- isIllegalKey
- isInRange
- isInt32
- isIntString
- isIterable
- isMap
- isMobile
- isNaN
- isNegative
- isNil
- isNode
- isNotStringAndIterable
- isNull
- isNumber
- isNumeric
- isNumericFloat
- isNumericInt
- isObject
- isOdd
- isPlainObject
- isPositive
- isPrimitive
- isPrintableASCII
- isPromise
- isPromiseLike
- isProtoPath
- isRegExp
- isSafari
- isSet
- isString
- isSymbol
- isTouchEvent
- isTransferable
- isTrue
- isTypedArray
- isUUID
- isUUIDv4
- isUint32
- isUndefined
- isZero
STABLE - used in production
Search or submit any issues for this package
``bash`
yarn add @thi.ng/checks
ESM import:
`ts`
import * as ch from "@thi.ng/checks";
Browser ESM import:
`html`
For Node.js REPL:
`js`
const ch = await import("@thi.ng/checks");
Package sizes (brotli'd, pre-treeshake): ESM: 1.80 KB
None
TODO
- Karsten Schmidt (Main author)
- Gavin Cannizzaro
- Jay Zawrotny
If this project contributes to an academic publication, please cite it as:
`bibtex``
@misc{thing-checks,
title = "@thi.ng/checks",
author = "Karsten Schmidt and others",
note = "https://thi.ng/checks",
year = 2016
}
© 2016 - 2026 Karsten Schmidt // Apache License 2.0