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.
🔩 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
📑 Related links :
- v_to_md5 ⏭ MD5 hash generator
- v_to_sha256 ⏭ sha256 hash generator
- v_file_system ⏭ simple and safe fs module with sync and promises
- v_execute ⏭ Exec cli commands
- v_scrolls ⏭ Readme Generator
- v_database ⏭ single database solution
- v_database_cli ⏭ v_database cli tool