10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +01:00

Remove unnescesary function name for ArrayExtensions

This commit is contained in:
Mickaël Véril 2020-09-24 16:53:11 +02:00
parent 58d55cefe6
commit 6ad145ba0e

View File

@ -1,5 +1,5 @@
if (!Array.prototype.findAsync) { if (!Array.prototype.findAsync) {
Array.prototype.findAsync = async function findAsync(asyncCallback) { Array.prototype.findAsync = async function (asyncCallback) {
for (const item of this) { for (const item of this) {
if (await asyncCallback(item)) { if (await asyncCallback(item)) {
return item return item