10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 03:07:44 +02: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) {
Array.prototype.findAsync = async function findAsync(asyncCallback) {
Array.prototype.findAsync = async function (asyncCallback) {
for (const item of this) {
if (await asyncCallback(item)) {
return item