Socket
Socket
Sign inDemoInstall

lodash.result

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.result - npm Package Compare versions

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).

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