Interrupts execution for the specified number of ms
npm install @ameganix/sleepUsing npm:
``bash`
$ npm install @ameganix/sleep
Using yarn:
`bash`
$ yarn add @ameganix/sleep
Once the package is installed, you can import the function using require approach:
`js`
const sleep = require('@ameganix/sleep');
`js``
await sleep(1000);