Socket
Socket
Sign inDemoInstall

lodash.pluck

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.pluck - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

31

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

@@ -36,32 +36,5 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>

function pluck(collection, key) {
return map(collection, property(key));
return map(collection, baseProperty(key + ''));
}
/**
* Creates a function which returns the property value of `key` on a given object.
*
* @static
* @memberOf _
* @category Utility
* @param {string} key The key of the property to get.
* @returns {Function} Returns the new function.
* @example
*
* var users = [
* { 'user': 'fred' },
* { 'user': 'barney' }
* ];
*
* var getName = _.property('user');
*
* _.map(users, getName);
* // => ['fred', barney']
*
* _.pluck(_.sortBy(users, getName), 'user');
* // => ['barney', 'fred']
*/
function property(key) {
return baseProperty(key + '');
}
module.exports = pluck;

2

package.json
{
"name": "lodash.pluck",
"version": "3.0.0",
"version": "3.0.1",
"description": "The modern build of lodash’s `_.pluck` as a module.",

@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/",

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

# lodash.pluck v3.0.0
# lodash.pluck v3.0.1

@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.pluck` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.

See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.pluck) for more details.
See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.pluck) 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