aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/array/#/first.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/array/#/first.js')
-rw-r--r--node_modules/es5-ext/array/#/first.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/es5-ext/array/#/first.js b/node_modules/es5-ext/array/#/first.js
new file mode 100644
index 000000000..ca76833b1
--- /dev/null
+++ b/node_modules/es5-ext/array/#/first.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var firstIndex = require("./first-index");
+
+module.exports = function () {
+ var i;
+ if ((i = firstIndex.call(this)) !== null) return this[i];
+ return undefined;
+};