Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isEmpty(value){
- return false
- // return value === undefined ||
- // value === null ||
- // (typeof value === "object" && Object.keys(value).length === 0) ||
- // (typeof value === "string" && value.trim().length === 0)
- }
- module.exports = isEmpty;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement