Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const userIds: Array<integer> = [1, 2, 8, 19];
- const deleteUser = (userId: integer): void => {
- //some asynchronous database query
- };
- const deleteUsers (userIds: Array<integer>): void => {
- console.log('Start deleting users');
- //delete all users
- // a) one by one
- // b) no order required
- console.log('All users have been deleted!');
- };
- deleteUsers(userIds);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement