Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 326 Bytes

Functions.md

File metadata and controls

13 lines (10 loc) · 326 Bytes

Functions

oneByOne

Run asynchronous functions one after each other. Each of the functions get the resolved value of the previous function as a parameter. The last result is resolved by oneByOne().

const result = await oneByOne([
  async () => readUsers(),
  async (users: User[]) => readEntries(users),
])