> For the complete documentation index, see [llms.txt](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/docs/utils/async-for-each.md).

# Async For Each

```javascript
const {asyncForEach} = require('feathers-mongoose-casl');

async get(id, params) {
  await asyncForEach([1,2,3], async function(item){
    await doSomething(item);
  })
}
```
