lodash.values
Advanced tools
Comparing version 3.0.0 to 4.0.0
30
index.js
/** | ||
* lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* lodash 4.0.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
*/ | ||
var baseValues = require('lodash._basevalues'), | ||
var arrayMap = require('lodash._arraymap'), | ||
keys = require('lodash.keys'); | ||
/** | ||
* The base implementation of `_.values` and `_.valuesIn` which creates an | ||
* array of `object` property values corresponding to the property names | ||
* of `props`. | ||
* | ||
* @private | ||
* @param {Object} object The object to query. | ||
* @param {Array} props The property names to get values for. | ||
* @returns {Object} Returns the array of property values. | ||
*/ | ||
function baseValues(object, props) { | ||
return arrayMap(props, function(key) { | ||
return object[key]; | ||
}); | ||
} | ||
/** | ||
* Creates an array of the own enumerable property values of `object`. | ||
@@ -38,5 +54,5 @@ * | ||
function values(object) { | ||
return baseValues(object, keys(object)); | ||
return object ? baseValues(object, keys(object)) : []; | ||
} | ||
module.exports = values; |
{ | ||
"name": "lodash.values", | ||
"version": "3.0.0", | ||
"description": "The modern build of lodash’s `_.values` as a module.", | ||
"version": "4.0.0", | ||
"description": "The lodash method `_.values` exported as a module.", | ||
"homepage": "https://lodash.com/", | ||
"icon": "https://lodash.com/icon.svg", | ||
"license": "MIT", | ||
"keywords": "lodash, lodash-modularized, stdlib, util", | ||
"keywords": "lodash, lodash-modularized, stdlib, util, values", | ||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"contributors": [ | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)", | ||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)", | ||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" | ||
@@ -20,5 +18,5 @@ ], | ||
"dependencies": { | ||
"lodash._basevalues": "^3.0.0", | ||
"lodash.keys": "^3.0.0" | ||
"lodash._arraymap": "^3.0.0", | ||
"lodash.keys": "^4.0.0" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# lodash.values v3.0.0 | ||
# lodash.values v4.0.0 | ||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.values` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
The [lodash](https://lodash.com/) method `_.values` exported as a [Node.js](https://nodejs.org/) module. | ||
@@ -8,3 +8,2 @@ ## Installation | ||
Using npm: | ||
```bash | ||
@@ -15,4 +14,3 @@ $ {sudo -H} npm i -g npm | ||
In Node.js/io.js: | ||
In Node.js: | ||
```js | ||
@@ -22,2 +20,2 @@ var values = require('lodash.values'); | ||
See the [documentation](https://lodash.com/docs#values) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.values) for more details. | ||
See the [documentation](https://lodash.com/docs#values) or [package source](https://github.com/lodash/lodash/blob/4.0.0-npm-packages/lodash.values) 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
4100
54
19
+ Addedlodash._arraymap@^3.0.0
+ Addedlodash._arraymap@3.0.0(transitive)
+ Addedlodash.keys@4.2.0(transitive)
- Removedlodash._basevalues@^3.0.0
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.keys@3.1.2(transitive)
Updatedlodash.keys@^4.0.0