Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

hugoalh-studio/advanced-determine-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Determine (Deno)

⚖️ MIT

Release - Latest Release - Pre
GitHub GitHub Latest Release Version (GitHub Latest Release Date) GitHub Latest Pre-Release Version (GitHub Latest Pre-Release Date)

A Deno module to provide advanced method to determine item.

🔰 Begin

Deno

  • Target Version: >= v1.41.0
  • Require Permission: N/A
  • Registry:
    • DenoPKG
      import ... from "https://denopkg.com/hugoalh-studio/advanced-determine-deno[@<Tag>]/mod.ts";
    • GitHub Raw [Require Tag]
      import ... from "https://raw.githubusercontent.com/hugoalh-studio/advanced-determine-deno/<Tag>/mod.ts";
    • Pax
      import ... from "https://pax.deno.dev/hugoalh-studio/advanced-determine-deno[@<Tag>]/mod.ts";

ℹ️ Notice: Although it is recommended to import main module with path mod.ts in general, it is also able to import part of the module with sub path if available, but do not import if:

  • it's file path has an underscore prefix (e.g.: _foo.ts, _util/bar.ts), or
  • it is a benchmark or test file (e.g.: foo.bench.ts, foo.test.ts), or
  • it's symbol has an underscore prefix (e.g.: export function _baz() {}).

These elements are not considered part of the public API, thus no stability is guaranteed for them.

🧩 API (Excerpt)

ℹ️ Notice: Documentation is included inside the script file, can view it via:

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 "https://raw.githubusercontent.com/hugoalh-studio/advanced-determine-deno/main/array/is_unique.ts";
    
    isArrayUnique([{ foo: "bar" }, { foo: "bar" }]);
    //=> false
  • import { isArrayUniqueReference } from "https://raw.githubusercontent.com/hugoalh-studio/advanced-determine-deno/main/array/is_unique_reference.ts";
    
    isArrayUniqueReference([{ foo: "bar" }, { foo: "bar" }]);
    //=> true
  • import { isNumericPrime } from "https://raw.githubusercontent.com/hugoalh-studio/advanced-determine-deno/main/numeric/is_prime.ts";
    
    isNumericPrime(17n);
    //=> true
  • import { isStringCaseUpper } from "https://raw.githubusercontent.com/hugoalh-studio/advanced-determine-deno/main/string/is_case_upper.ts";
    
    isStringCaseUpper("Hello, world!");
    //=> false

🔗 Other Edition