aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/function/pluck.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/function/pluck.js')
-rw-r--r--node_modules/es5-ext/function/pluck.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/es5-ext/function/pluck.js b/node_modules/es5-ext/function/pluck.js
new file mode 100644
index 000000000..8507128ac
--- /dev/null
+++ b/node_modules/es5-ext/function/pluck.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var value = require("../object/valid-value");
+
+module.exports = function (name) {
+ return function (obj) {
+ return value(obj)[name];
+ };
+};