• Asynchronously process each item in an array.

    Parameters

    • list: any

      Array to process

    • next_item_callback: any

      Callback for each item. Parameter 2 is the callback function to process the next item. Parameter 3 is item index.

    • Optional final_callback: any

      Final callback after everything has been done.

    Returns void

    Example

    asyncForEach(arr, function (item, next) {
    ...
    next();
    });

    Method

    asyncForEach