• Returns whether the given object is not empty

    Parameters

    • object: any

      the object to check

    Returns boolean

    whether the given object is not empty

    isNotEmpty('foobar');    // true
    isNotEmpty([undefined, null]); // true