🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

pluck-util

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pluck-util - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+0
-3
index.js

@@ -12,4 +12,2 @@ const shallowProperty = key => obj => obj == null ? void 0 : obj[key];

// Creates a function that, when passed an object, will traverse that object’s
// properties down the given `path`, specified as an array of keys or indexes.
const property = path => {

@@ -22,3 +20,2 @@ if (!Array.isArray(path)) {

// Convenience version of a common use case of `map`: fetching a property.
module.exports = (obj, key) => obj.map(property(key));
+1
-1
{
"name": "pluck-util",
"version": "1.0.0",
"version": "1.0.1",
"description": "Extract a list of property values from a collection.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,3 +21,3 @@ # pluck-util [![Build Status](https://travis-ci.com/jonkemp/pluck-util.svg?branch=master)](https://travis-ci.com/jonkemp/pluck-util)

```
<script src="https://unpkg.com/pluck-util@1.0.0/umd/index.js" />
<script src="https://unpkg.com/pluck-util@1.0.1/umd/index.js" />
```

@@ -24,0 +24,0 @@

@@ -36,4 +36,2 @@ (function(f) {

// Creates a function that, when passed an object, will traverse that object’s
// properties down the given `path`, specified as an array of keys or indexes.
const property = path => {

@@ -46,3 +44,2 @@ if (!Array.isArray(path)) {

// Convenience version of a common use case of `map`: fetching a property.
module.exports = (obj, key) => obj.map(property(key));

@@ -49,0 +46,0 @@