Question: need a help to create javascript functions..... getManagers() This function will provide an array of employee objects whose isManager property is true using the resolve
need a help to create javascript functions.....
getManagers()
- This function will provide an array of "employee" objects whose isManager property is true using the resolve method of the returned promise.
- If for some reason, the length of the array is 0 (no results returned), this function must invoke the reject method and pass a meaningful message, ie: "no results returned".
getDepartments()
- This function will provide the full array of "department" objects using the resolve method of the returned promise.
- If for some reason, the length of the array is 0 (no results returned), this function must invoke the reject method and pass a meaningful message, ie: "no results returned".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
