summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/object/valuesIn.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash/object/valuesIn.js')
-rw-r--r--deps/npm/node_modules/lodash/object/valuesIn.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash/object/valuesIn.js b/deps/npm/node_modules/lodash/object/valuesIn.js
new file mode 100644
index 0000000000..5f067c060b
--- /dev/null
+++ b/deps/npm/node_modules/lodash/object/valuesIn.js
@@ -0,0 +1,31 @@
+var baseValues = require('../internal/baseValues'),
+ keysIn = require('./keysIn');
+
+/**
+ * Creates an array of the own and inherited enumerable property values
+ * of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property values.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.valuesIn(new Foo);
+ * // => [1, 2, 3] (iteration order is not guaranteed)
+ */
+function valuesIn(object) {
+ return baseValues(object, keysIn(object));
+}
+
+module.exports = valuesIn;