summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/stubTrue.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/stubTrue.js')
-rw-r--r--tools/eslint/node_modules/lodash/stubTrue.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/lodash/stubTrue.js b/tools/eslint/node_modules/lodash/stubTrue.js
new file mode 100644
index 0000000000..c166806e16
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/stubTrue.js
@@ -0,0 +1,18 @@
+/**
+ * A method that returns `true`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.13.0
+ * @category Util
+ * @returns {boolean} Returns `true`.
+ * @example
+ *
+ * _.times(2, _.stubTrue);
+ * // => [true, true]
+ */
+function stubTrue() {
+ return true;
+}
+
+module.exports = stubTrue;