Speaktech.in

Jquery check if variable is empty


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);
  }