Skip to main content
Home
This package has been archived, and as such it is read-only.

Built and signed on GitHub Actions

latest

A collection of "is"-style helpers to help solidify if something "is" something else. Has no dependencies and uses only raw JavaScript methodology.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
11 months ago (1.3.1)

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

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@withonevision/is-helper

Import symbol

import * as is_helper from "@withonevision/is-helper";
or

Import directly with a jsr specifier

import * as is_helper from "jsr:@withonevision/is-helper";

Add Package

pnpm i jsr:@withonevision/is-helper
or (using pnpm 10.8 or older)
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
or (using Yarn 4.8 or older)
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";