Advanced Determine (NodeJS)
Release - Latest | Release - Pre | |
---|---|---|
() | () | |
A NodeJS module to provide advanced method to determine item.
🔰 Begin
Bun
🧪 Experimental: Bun is still under development.
-
Target Version: ^ v1.0.0, &:
- TypeScript >= v5.1.0 [Development]
- Require Permission: N/A
-
Domain/Registry:
-
NPM
bun add @hugoalh/advanced-determine[@<Tag>]
import ... from "@hugoalh/advanced-determine[@<Tag>]";
-
NPM
ℹ️ Notice: It is also able to import part of the module with sub path if available, see file
package.json
propertyexports
for available sub paths.
NodeJS
-
Target Version: >= v16.13.0, &:
- TypeScript >= v5.1.0 [Development]
- Require Permission: N/A
-
Domain/Registry:
-
NPM
npm install @hugoalh/advanced-determine[@<Tag>]
import ... from "@hugoalh/advanced-determine";
-
NPM
ℹ️ Notice: It is also able to import part of the module with sub path if available, see file
package.json
propertyexports
for available sub paths.
🧩 API (Excerpt)
ℹ️ Notice: Documentation is included inside the script file.
Function
isArrayStrict
isArrayUnique
isArrayUniqueReference
isAsyncFunction
isAsyncGenerator
isAsyncGeneratorFunction
isBigIntegerEven
isBigIntEven
isBigIntNegative
isBigIntOdd
isBigIntPositive
isBigIntSafe
isEmpty
isJSON
isJSONArray
isJSONObject
isJSONPrimitive
isNumberEven
isNumberFloat
isNumberNegative
isNumberOdd
isNumberPositive
isNumberSafe
isNumericIntegralType
isNumericPrime
isObjectPlain
isPrimitive
isStringASCII
isStringCaseLower
isStringCaseUpper
isStringSingleLine
isStringTrimmable
isStringTrimmableEnd
isStringTrimmableStart
isSyncFunction
isSyncGenerator
isSyncGeneratorFunction
✍️ Example
-
import { isArrayUnique } from "@hugoalh/advanced-determine/array/is-unique"; isArrayUnique([{ foo: "bar" }, { foo: "bar" }]); //=> false
-
import { isArrayUniqueReference } from "@hugoalh/advanced-determine/array/is-unique-reference"; isArrayUniqueReference([{ foo: "bar" }, { foo: "bar" }]); //=> true
-
import { isNumericPrime } from "@hugoalh/advanced-determine/numeric/is-prime"; isNumericPrime(17n); //=> true
-
import { isStringCaseUpper } from "@hugoalh/advanced-determine/string/is-case-upper"; isStringCaseUpper("Hello, world!"); //=> false