10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 19:27:42 +02:00
QUESTDB_website/static/js/ArrayExtensions.js

9 lines
206 B
JavaScript

if (!Array.prototype.findAsync) {
Array.prototype.findAsync = async function (asyncCallback) {
for (const item of this) {
if (await asyncCallback(item)) {
return item
}
}
}
}