libs/lodash.js
function isEmpty(value) {
      var result = true;
      if (!value) {
        return result;
      }
      var length = value.length;
      if ((length > -1 && length <= maxSafeInteger) &&
          (isArray(value) || isString(value) || isArguments(value) ||
            (typeof value == 'object' && isFunction(value.splice)))) {
        return !length;
      }
      baseForOwn(value, function() {
        return (result = false);
      });
      return result;
    }
function isEmpty(value) {
      var result = true;
      if (!value) {
        return result;
      }
      var length = value.length;
      if ((length > -1 && length <= maxSafeInteger) &&
          (isArray(value) || isString(value) || isArguments(value) ||
            (typeof value == 'object' && isFunction(value.splice)))) {
        return !length;
      }
      baseForOwn(value, function() {
        return (result = false);
      });
      return result;
    }
function isEmpty ( value ) { var result = true ; if ( ! value ) { return result ; } var length = value . length ; if ( ( length > - 1 && length <= maxSafeInteger ) && ( isArray ( value ) || isString ( value ) || isArguments ( value ) || ( typeof value == 'object' && isFunction ( value . splice ) ) ) ) { return ! length ; } baseForOwn ( value , function ( ) { return ( result = false ) ; } ) ; return result ; }
Checks if a collection is empty. A value is considered empty unless it is
an array, array-like object, or string with a length greater than `0` or
an object with own properties.

@static
@memberOf _
@category Objects
@param {Array|Object|string} value The value to inspect.
@returns {boolean} Returns `true` if `value` is empty, else `false`.
@example

_.isEmpty(null);
// => true

_.isEmpty(true);
// => true

_.isEmpty(1);
// => true

_.isEmpty([1, 2, 3]);
// => false

_.isEmpty({ 'a': 1 });
// => false
Checks if a collection is empty . A value is considered empty unless it is an array array - like object or string with a length greater than 0 or an object with own properties .