Advertisement
adam-techtailor

be test 1 - asynchronous stuff

Feb 25th, 2022 (edited)
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const userIds: Array<integer> = [1, 2, 8, 19];
  2.  
  3. const deleteUser = (userId: integer): void => {
  4.   //some asynchronous database query
  5. };
  6.  
  7. const deleteUsers (userIds: Array<integer>): void => {
  8.     console.log('Start deleting users');
  9.     //delete all users
  10.     // a) one by one
  11.     // b) no order required
  12.     console.log('All users have been deleted!');
  13. };
  14.  
  15. deleteUsers(userIds);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement