I'm pretty sure it doesn't make sense to use a default value here... because calling map on the empty object will cause a crash. In other parts of the project, you pass an array as the second argument, so this seems like it was unintentional.
Discovered as I was trying to rewrite some of your code using TypeScript... :D
I'm pretty sure it doesn't make sense to use a default value here... because calling map on the empty object will cause a crash. In other parts of the project, you pass an array as the second argument, so this seems like it was unintentional.
Discovered as I was trying to rewrite some of your code using TypeScript... :D