Socket
Socket
Sign inDemoInstall

lodash.omit

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.omit - npm Package Compare versions

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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc