SHARE
TWEET

Untitled

a guest Sep 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const isEmpty = value =>
  2.         value === undefined ||
  3.         value === null ||
  4.         (typeof value === "object" && Object.keys(value).length === 0) ||
  5.         (typeof value === "string" && value.trim().length === 0)
  6.    
  7.     module.exports = isEmpty;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top