There were 3 tasks, 1h
Write flatten function to convert nested object into array
I solved using dfs in 5-10 min
write jest functions to make expression like
expect(add(1,2)).toBe(greaterThen(1)) work
task implement: expect, toBe, greaterThen
You should know concept of currying, which was popular in jquery times.
I didn't remember how it should be done, only remembered the concept name. Spent may be 20 min to solve this with interviewers help.
It's simple i solved this using simple trycatch finally. Tell abount potential usage of Promise.all or allSettled.
Result: rejected
I solved 1 and 3, 2nd only with the help of interviewer.
I didn't expect such old functional programming questions.
Strange way of evaluation senior devs, i think it's just a bad luck with interviewer, or not my company.