lodash.omit
Advanced tools
Comparing version 4.2.1 to 4.3.0
17
index.js
/** | ||
* lodash 4.2.1 (Custom Build) <https://lodash.com/> | ||
* lodash (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -14,2 +14,5 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
/** Used as references for various `Number` constants. */ | ||
var INFINITY = 1 / 0; | ||
/** `Object#toString` result references. */ | ||
@@ -111,5 +114,3 @@ var symbolTag = '[object Symbol]'; | ||
var result = keysFunc(object); | ||
return isArray(object) | ||
? result | ||
: arrayPush(result, symbolsFunc(object)); | ||
return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); | ||
} | ||
@@ -203,4 +204,8 @@ | ||
*/ | ||
function toKey(key) { | ||
return (typeof key == 'string' || isSymbol(key)) ? key : (key + ''); | ||
function toKey(value) { | ||
if (typeof value == 'string' || isSymbol(value)) { | ||
return value; | ||
} | ||
var result = (value + ''); | ||
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; | ||
} | ||
@@ -207,0 +212,0 @@ |
{ | ||
"name": "lodash.omit", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "The lodash method `_.omit` exported as a module.", | ||
@@ -18,3 +18,3 @@ "homepage": "https://lodash.com/", | ||
"dependencies": { | ||
"lodash._basedifference": "~4.4.0", | ||
"lodash._basedifference": "~4.5.0", | ||
"lodash._baseflatten": "~4.2.0", | ||
@@ -21,0 +21,0 @@ "lodash.keysin": "^4.0.0", |
@@ -1,2 +0,2 @@ | ||
# lodash.omit v4.2.1 | ||
# lodash.omit v4.3.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.omit` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#omit) or [package source](https://github.com/lodash/lodash/blob/4.2.1-npm-packages/lodash.omit) for more details. | ||
See the [documentation](https://lodash.com/docs#omit) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.omit) 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
11508
290
+ Addedlodash._basedifference@4.5.0(transitive)
+ Addedlodash._root@3.0.1(transitive)
- Removedlodash._basedifference@4.4.1(transitive)
- Removedlodash._setcache@4.1.3(transitive)