@withonevision/is-helper@1.3.1Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
A collection of "is"-style helpers to help solidify if something "is" something else. Has no dependencies and uses only raw JavaScript methodology.
Is Helper
This is a collection of static helpers that encapsulate basic "determining" functions that are run all the time in JavaScript. Some of these have at one point or another been in the Node engine itself but have moved in and out depending on versioning.
For example...this is quite common:
if (value === undefined or value === null)
The is-helper provides the functionality:
import IsHelper from "@withonevision/is-helper" if (IsHelper.isNullOrUndefined(value))
The is-helper also adds functionality to certain things like:
import IsHelper from "@withonevision/is-helper" if (IsHelper.isBoolean(value))
This will not only check if the value is boolean, but will also check if the value is a number equal to 0 for false or 1 for true. It will also check if the value is a string and equal to anything that would be considered "truthy" ("Y/N", "true/false", etc.)
For a full list of functions, see the jsr.io documentation
Add Package
deno add jsr:@withonevision/is-helper
Import symbol
import * as is_helper from "@withonevision/is-helper";
Import directly with a jsr specifier
import * as is_helper from "jsr:@withonevision/is-helper";
Add Package
pnpm i jsr:@withonevision/is-helper
pnpm dlx jsr add @withonevision/is-helper
Import symbol
import * as is_helper from "@withonevision/is-helper";
Add Package
yarn add jsr:@withonevision/is-helper
yarn dlx jsr add @withonevision/is-helper
Import symbol
import * as is_helper from "@withonevision/is-helper";
Add Package
vlt install jsr:@withonevision/is-helper
Import symbol
import * as is_helper from "@withonevision/is-helper";
Add Package
npx jsr add @withonevision/is-helper
Import symbol
import * as is_helper from "@withonevision/is-helper";
Add Package
bunx jsr add @withonevision/is-helper
Import symbol
import * as is_helper from "@withonevision/is-helper";