constisFalsy=(value)=>{constisUndefined=value===undefined;constisNull=value===null;constisEmptyString=typeofvalue==="string"&&!value.trim();constisEmptyArray=typeofvalue==="object"&&Array.isArray(value)&&value.length===0;constisEmptyObject=typeofvalue==="object"&&!Array.isArray(value)&&Object.keys(value).length===0;return(isUndefined||isNull||isEmptyString||isEmptyArray||isEmptyObject);};
Thanks for reading 💙
Follow@codedrops.tech for daily posts.
Instagram ●Twitter ●Facebook
Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript
codedrops.tech
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse