lodash.result
Advanced tools
Comparing version 2.3.0 to 2.4.0
12
index.js
/** | ||
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> | ||
* Lo-Dash 2.4.0 (Custom Build) <http://lodash.com/> | ||
* Build: `lodash modularize modern exports="npm" -o ./npm/` | ||
@@ -12,3 +12,3 @@ * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> | ||
/** | ||
* Resolves the value of `property` on `object`. If `property` is a function | ||
* Resolves the value of property `key` on `object`. If `key` is a function | ||
* it will be invoked with the `this` binding of `object` and its result returned, | ||
@@ -22,3 +22,3 @@ * else the property value is returned. If `object` is falsey then `undefined` | ||
* @param {Object} object The object to inspect. | ||
* @param {string} property The property to get the value of. | ||
* @param {string} key The name of the property to resolve. | ||
* @returns {*} Returns the resolved value. | ||
@@ -40,6 +40,6 @@ * @example | ||
*/ | ||
function result(object, property) { | ||
function result(object, key) { | ||
if (object) { | ||
var value = object[property]; | ||
return isFunction(value) ? object[property]() : value; | ||
var value = object[key]; | ||
return isFunction(value) ? object[key]() : value; | ||
} | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "lodash.result", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "The Lo-Dash function `_.result` as a Node.js module generated by lodash-cli.", | ||
@@ -18,4 +18,4 @@ "homepage": "http://lodash.com/custom-builds", | ||
"dependencies": { | ||
"lodash.isfunction": "~2.3.0" | ||
"lodash.isfunction": "~2.4.0" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.result v2.3.0 | ||
# lodash.result v2.4.0 | ||
@@ -3,0 +3,0 @@ The [Lo-Dash](http://lodash.com/) function [`_.result`](http://lodash.com/docs#result) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). |
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
4543
+ Addedlodash.isfunction@2.4.1(transitive)
- Removedlodash.isfunction@2.3.0(transitive)
Updatedlodash.isfunction@~2.4.0