10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +01:00

Fix findAllIndexes

This commit is contained in:
Mickaël Véril 2020-09-24 18:38:45 +02:00
parent 1119c6c9e5
commit 54d883e64b

View File

@ -8,7 +8,7 @@ if (!Array.prototype.findAsync) {
} }
if (!Array.prototype.findAllIndexes) { if (!Array.prototype.findAllIndexes) {
Array.prototype.findAllIndexes = function (Callback) { Array.prototype.findAllIndexes = function (Callback) {
this.reduce(function(a, e, i) { return this.reduce(function(a, e, i) {
if (Callback(e)) if (Callback(e))
a.push(i) a.push(i)
return a return a