lodash.isempty
Advanced tools
Comparing version 4.1.2 to 4.1.3
17
index.js
/** | ||
* lodash 4.1.2 (Custom Build) <https://lodash.com/> | ||
* lodash 4.1.3 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -131,4 +131,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
function isArrayLike(value) { | ||
return value != null && | ||
!(typeof value == 'function' && isFunction(value)) && isLength(getLength(value)); | ||
return value != null && isLength(getLength(value)) && !isFunction(value); | ||
} | ||
@@ -164,5 +163,5 @@ | ||
/** | ||
* Checks if `value` is empty. A value is considered empty unless it's an | ||
* `arguments` object, array, string, or jQuery-like collection with a length | ||
* greater than `0` or an object with own enumerable properties. | ||
* Checks if `value` is an empty collection or object. A value is considered | ||
* empty if it's an `arguments` object, array, string, or jQuery-like collection | ||
* with a length of `0` or has no own enumerable properties. | ||
* | ||
@@ -172,3 +171,3 @@ * @static | ||
* @category Lang | ||
* @param {Array|Object|string} value The value to inspect. | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is empty, else `false`. | ||
@@ -224,4 +223,4 @@ * @example | ||
// The use of `Object#toString` avoids issues with the `typeof` operator | ||
// in Safari 8 which returns 'object' for typed array constructors, and | ||
// PhantomJS 1.9 which returns 'function' for `NodeList` instances. | ||
// in Safari 8 which returns 'object' for typed array and weak map constructors, | ||
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances. | ||
var tag = isObject(value) ? objectToString.call(value) : ''; | ||
@@ -228,0 +227,0 @@ return tag == funcTag || tag == genTag; |
{ | ||
"name": "lodash.isempty", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "The lodash method `_.isEmpty` exported as a module.", | ||
@@ -12,3 +12,3 @@ "homepage": "https://lodash.com/", | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)", | ||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)", | ||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" | ||
@@ -15,0 +15,0 @@ ], |
@@ -1,2 +0,2 @@ | ||
# lodash.isempty v4.1.2 | ||
# lodash.isempty v4.1.3 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.isEmpty` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/4.1.2-npm-packages/lodash.isempty) for more details. | ||
See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.isempty) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10695
312