New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

checkify-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checkify-utils

A lightweight utility library for common JavaScript checks, including isEmpty, isNull, isNumber, isEmptyString, isArray, and isNaN. Useful for validation and data handling.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

checkify-utils

A lightweight utility library for common JavaScript checks, including isEmpty, isNull, isNumber, isEmptyString, isArray, and isNaN. Useful for validation and data handling.

Installation

npm install checkify-utils

or

yarn add checkify-utils

Usage

import {
  isEmpty,
  isNull,
  isNumber,
  isEmptyString,
  isArray,
  isNaN,
} from "checkify-utils";

console.log(isEmpty([])); // true
console.log(isEmpty({})); // true
console.log(isNull(null)); // true
console.log(isNull(undefined)); // true
console.log(isNumber(42)); // true
console.log(isNumber(0)); // true
console.log(isEmptyString("")); // true
console.log(isArray([1, 2, 3])); // true
console.log(isNaN(NaN)); // true

API Reference

isEmpty(value: any): boolean

Checks if the given value is empty ([], {}).

isNull(value: any): boolean

Checks if the given value is null or undefined.

isNumber(value: any): boolean

Checks if the given value is a number (including 0).

isEmptyString(value: any): boolean

Checks if the given value is an empty string ("").

isArray(value: any): boolean

Checks if the given value is an array.

isNaN(value: any): boolean

Checks if the given value is NaN.

License

MIT

Keywords

utils

FAQs

Package last updated on 28 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts