[!NOTE] This is one of 199 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! ❤️
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
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
yarn add @thi.ng/checks
ESM import:
import * as ch from "@thi.ng/checks";
Browser ESM import:
<script type="module" src="https://esm.run/@thi.ng/checks"></script>
For Node.js REPL:
const ch = await import("@thi.ng/checks");
Package sizes (brotli'd, pre-treeshake): ESM: 1.65 KB
TODO
- Karsten Schmidt (Main author)
- Gavin Cannizzaro
- Jay Zawrotny
If this project contributes to an academic publication, please cite it as:
@misc{thing-checks,
title = "@thi.ng/checks",
author = "Karsten Schmidt and others",
note = "https://thi.ng/checks",
year = 2016
}
© 2016 - 2024 Karsten Schmidt // Apache License 2.0