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

is-nonpresent

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-nonpresent

Check if the given value is nonpresent.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

check if a value is nonpresent

basically the same as is-blank.

installation

npm install is-nonpresent

usage

const isNonpresent = require('is-nonpresent')
 
isNonpresent([])              // => true
isNonpresent({})              // => true
isNonpresent(0)               // => true
isNonpresent(function(){})    // => true
isNonpresent(null)            // => true
isNonpresent(undefined)       // => true
isNonpresent('')              // => true
isNonpresent('    ')          // => true
isNonpresent('\r\t\n ')       // => true
 
isNonpresent(['a', 'b'])      // => false
isNonpresent({ a: 'b' })      // => false
isNonpresent('string')        // => false
isNonpresent(42)              // => false
isNonpresent(function(a,b){}) // => false

related:

  • is-present
  • is-blank
  • is-whitespace
  • is-empty

Keywords

is

FAQs

Package last updated on 17 Jan 2026

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