+0
-3
@@ -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", |
+1
-1
@@ -21,3 +21,3 @@ # pluck-util [](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 @@ |
+0
-3
@@ -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 @@ |
5059
-8.5%56
-9.68%