ISEMPTY // 
FUNCTION: isEmpty( value )
Validates if a value is empty: '', [], {}.

@param {String|Array|Object} value - value to be validated
@returns {Boolean} boolean indicating whether value is empty
501613
function isEmpty( value ) {
	if ( isString( value ) && !value.length ) {
		return true;
	}
	if ( isArray( value ) && !value.length ) {
		return true;
	}
	if ( typeof value !== 'object' || value === null ) {
		return false;
	}
	return ( !keys( value ).length );
}
141635
function isEmpty() {
        if (_valueType === 'string') {
            _valid = _valid && _value === '';
        } else if (_valueType instanceof Array) {
            _valid = _valid && _value.length === 0;
        }
        return _guard;
    }
917465
function (value, constraint) {
        var pattern = asRegExp(constraint.value);
        return valdrUtil.isEmpty(value) || pattern.test(value);
      }
1336895
public boolean isEmpty() {
        if(value == null) {
            return true;
        }
        
        if(value instanceof String) {
            return ((String)value).isEmpty();
        }
        
        return false;
    }
469850
def empty(val):
    
    if val == None:
        return True

    if isinstance(val,str) and len(val) > 0:
        return False

    return True
674840
function(v) {
		return _.isNil(v) || (_.isString(v) && _.isEmpty(v));
	}
301637
def validate(self, value):
        ''''''
        if not self.blank and value == '':
            self.error_message = 'Can not be empty.  Please provide a value.'
            return False
        self._choice = value
        return True
556965
public static Boolean isNotSet(String value) {
        return null == value || value.isEmpty() || value.trim().length() == 0;
    }
523999
public static boolean isEmpty (Object value) {

        if (value == null) {
            return true;
        }

        if (value.getClass() == String.class) {
            return isEmpty(value.toString());
        }

        if (value.getClass().isArray()) {
            return Array.getLength(value) == 0;
        }

        if (value instanceof Collection) {
            return ((Collection)value).size() == 0;
        }

        return false;
    }
801557
public static function checkEmpty($value)
    {
        if (!isset($value)){
            return true;
        }

        if ($value === null){
            return true;
        }

        if (trim($value) === "") {
            return true;
        }

        return false;
    }
129670
public static function is_empty( $value = '' ){
		if( is_array( $value ) ){
			$value = array_filter( $value );
			if( empty( $value ) ){
				return true;
			}
		} else if( empty( $value ) ){
			return true;
		}
		return false;
	}
891668
function isEmpty (value) {
    if (Array.isArray(value)) {
        return value.length === 0
    } else if (typeof value === 'object') {
        if (value) {
            for (const _ in value) {
                return false
            }
        }
        return true
    } else {
        return !value
    }
}
58992
function isEmptyObject(item) {
  if (item === undefined || item === null) {
    return false;
  }

  return (Object.keys(item).length === 0 && JSON.stringify(item) === JSON.stringify({}));
}
388138
def blank?(value)
      if value.kind_of?(NilClass)
        true
      elsif value.kind_of?(String)
        value !~ /\S/
      else
        value.respond_to?(:empty?) ? value.empty? : !value
      end
    end
6539
function isEmpty(value) {
	if (Array.isArray(value)) {
		// If first item in array is undefined, we assume there are no parameters
		// This happens as a result of using the rest operator in a mixin
		return value.length === 0 || value[0] === undefined;
	}

	return value === undefined;
}
1088511
public static boolean isEmpty(Object value) {
		return (null == value || (value instanceof String && StrUtil.isEmpty((String) value)));
	}
468471
public static boolean isEmpty(Object value) throws IOException {
		if(value instanceof String) {
			// If A is a string, then the result is A.
			return ((String)value).isEmpty();
		} else if(value == null) {
			// Otherwise, if A is null, then the result is "".
			return true;
		} else if(value instanceof Writable) {
			return ((Writable)value).getLength() == 0;
		} else if(value instanceof Node) {
			// Otherwise, if is a DOM node, serialize the output
			return false; // There is a node, is not empty
		} else {
			// Otherwise, if A.toString() throws an exception, then raise an error
			// Otherwise, the result is A.toString();
			return value.toString().isEmpty();
		}
	}