How is lodash turning this into boolean[]?
I am trying to write a function in typescript which validates that an object has certain properties and I got stuck at the very beginning do keys xyz exist? I tried to do that with the following code:
Using _.keyBy and spread operator doesn’t returns expected type
Code: