JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q36990F
  • License MIT

Simple async checker functions for empty values. Can check if a value is empty or not. [ isEmpty(val) / notEmpty(val) ]

Package Exports

  • v_is_empty_value
  • v_is_empty_value/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (v_is_empty_value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

👨‍💻 v_is_empty_value

Simple checker for Empty/NotEmpty values. Checking Numbers, Null, NaN, Strings, Objects, Arrays...Will also detect instance of Date() object and return "not-empty" value for it.

Codacy Badge

🔩 Install using command :

npm install v_is_empty_value

🎭 And save for later re-install :

npm install v_is_empty_value --save

🪁 How to use:

const { isEmpty, notEmpty } = require("v_is_empty_value");

isEmpty()  //-> TRUE
notEmpty()  //-> FALSE

isEmpty("")  //-> TRUE
notEmpty("")  //-> FALSE

isEmpty(null)  //-> TRUE
notEmpty(null)  //-> FALSE

isEmpty(undefined)  //-> TRUE
notEmpty(undefined)  //-> FALSE

isEmpty(NaN)  //-> TRUE
notEmpty(NaN)  //-> FALSE

isEmpty({})  //-> TRUE
notEmpty({})  //-> FALSE

isEmpty([])  //-> TRUE
notEmpty([])  //-> FALSE

isEmpty("demo_password_123456")  //-> FALSE
notEmpty("demo_password_123456")  //-> TRUE

isEmpty(new Date())  //-> FALSE
notEmpty(new Date())  //-> TRUE

✅ Test Results and Coverage with Jest

v_is_empty_value Node Module Test and Coverage with Jest

📑 Related links :