summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cli-table2/node_modules/lodash/chain/wrapperChain.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/cli-table2/node_modules/lodash/chain/wrapperChain.js')
-rw-r--r--deps/npm/node_modules/cli-table2/node_modules/lodash/chain/wrapperChain.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/deps/npm/node_modules/cli-table2/node_modules/lodash/chain/wrapperChain.js b/deps/npm/node_modules/cli-table2/node_modules/lodash/chain/wrapperChain.js
new file mode 100644
index 0000000000..38234819ba
--- /dev/null
+++ b/deps/npm/node_modules/cli-table2/node_modules/lodash/chain/wrapperChain.js
@@ -0,0 +1,32 @@
+var chain = require('./chain');
+
+/**
+ * Enables explicit method chaining on the wrapper object.
+ *
+ * @name chain
+ * @memberOf _
+ * @category Chain
+ * @returns {Object} Returns the new `lodash` wrapper instance.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 40 }
+ * ];
+ *
+ * // without explicit chaining
+ * _(users).first();
+ * // => { 'user': 'barney', 'age': 36 }
+ *
+ * // with explicit chaining
+ * _(users).chain()
+ * .first()
+ * .pick('user')
+ * .value();
+ * // => { 'user': 'barney' }
+ */
+function wrapperChain() {
+ return chain(this);
+}
+
+module.exports = wrapperChain;