Jquery check if variable is empty
- By Preneesh AV --
- 05-Dec-2019 --
- 183 Comments
Jquery check if variable is empty
function empty(n){
return !(!!n ? typeof n === 'object' ? Array.isArray(n) ? !!n.length : !!Object.keys(n).length : true : false);
}