Skip to content

orrin-nay/AsyncForeachES6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

AsyncForeachES6

Provides an asynchronous Foreach function, DUH

##Usage

import asyncForEach from 'asyncforeaches6';

const array = [1, 2, 3, 4];

const asyncFunction = async () => {
  console.log('start');
  await asyncForEach(array, (arrayItem) => {
    console.log(arrayItem);
  });
  console.log('end');
};

asyncFunction();

start
1
2
3
4
end

About

Provides an asynchronous Foreach function, DUH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published