Closed EmilTholin closed 6 years ago
Awesome! Thanks.
Obviously didn't need the variable, but at the same time, avoids accessing the array indices twice so it's a tiny performance win 😆 For 2 bytes, I'll take it.
https://github.com/lukeed/deepset/blob/master/src/index.js#L5-L6
As discussed in this thread.
Should it be
t[k[i]] == null ? {} : t[k[i]]
instead oft[k[i]] || {}
like you outlined in the thread?