Socket
Socket
Sign inDemoInstall

lodash.forown

Package Overview
Dependencies
2
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

28

index.js
/**
* lodash 4.0.0 (Custom Build) <https://lodash.com/>
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -13,2 +13,13 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>

/**
* Casts `value` to `identity` if it's not a function.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the array-like object.
*/
function baseCastFunction(value) {
return typeof value == 'function' ? value : identity;
}
/**
* The base implementation of `_.forOwn` without support for iteratee shorthands.

@@ -26,13 +37,2 @@ *

/**
* Converts `value` to a function if it's not one.
*
* @private
* @param {*} value The value to process.
* @returns {Function} Returns the function.
*/
function toFunction(value) {
return typeof value == 'function' ? value : identity;
}
/**
* Iterates over own enumerable properties of an object invoking `iteratee`

@@ -64,7 +64,7 @@ * for each property. The iteratee is invoked with three arguments:

function forOwn(object, iteratee) {
return object && baseForOwn(object, toFunction(iteratee));
return object && baseForOwn(object, baseCastFunction(iteratee));
}
/**
* This method returns the first argument provided to it.
* This method returns the first argument given to it.
*

@@ -71,0 +71,0 @@ * @static

{
"name": "lodash.forown",
"version": "4.0.0",
"version": "4.0.1",
"description": "The lodash method `_.forOwn` exported as a module.",

@@ -8,3 +8,3 @@ "homepage": "https://lodash.com/",

"license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util, forown",
"keywords": "lodash-modularized, forown",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",

@@ -11,0 +11,0 @@ "contributors": [

@@ -1,2 +0,2 @@

# lodash.forown v4.0.0
# lodash.forown v4.0.1

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.forOwn` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#forOwn) or [package source](https://github.com/lodash/lodash/blob/4.0.0-npm-packages/lodash.forown) for more details.
See the [documentation](https://lodash.com/docs#forOwn) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.forown) for more details.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc