We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355f17e commit 85dcb57Copy full SHA for 85dcb57
src/Data/ArrayBuffer/Typed.js
@@ -108,12 +108,12 @@ exports.reduceRight1Impl = function reduceRight1Impl (a,f) {
108
};
109
110
exports.findImpl = function findImpl (a,f) {
111
- var x = a.find(f);
112
- return (x === undefined) ? null : x;
+ return a.find(f);
113
+
114
exports.findIndexImpl = function findIndexImpl (a,f) {
115
- var x = a.findIndex(f);
116
- return (x === -1) ? null : x;
+ var r = a.findIndex(f);
+ return r === -1 ? null : r;
117
118
exports.indexOfImpl = function indexOfImpl (a,x,mo) {
119
var r = mo === null ? a.indexOf(x) : a.indexOf(x,mo);
0 commit comments