@yookue/ts-lang-utils
    Preparing search index...

    Function isEmpty

    • Returns whether the given object is empty

      Parameters

      • object: any

        the object to check

      Returns boolean

      whether the given object is empty

      David Hsing

      isEmpty(null);    // true
      isEmpty(undefined); // true
      isEmpty(0); // false
      isEmpty({}); // true
      isEmpty('foobar'); // false