Open emilgoldsmith opened 6 years ago
We shouldn't have hacky global prototype overrides ;), also the spec has changed from flatten to flat. (which was the reason no babel plugin was in yet, it was still in discussion)
flatten
flat
Emil (yeah that's me) implemented hacky global prototype overrides, see here https://github.com/thegazelle-ad/gazelle-server/blob/bd025e01cb5f8937976e5b4f230a4ab4efbd8591/src/index.js#L1-L7
Just remove the prototypes hacks and use lodash
Expected Behavior
We shouldn't have hacky global prototype overrides ;), also the spec has changed from
flatten
toflat
. (which was the reason no babel plugin was in yet, it was still in discussion)Current Behavior
Emil (yeah that's me) implemented hacky global prototype overrides, see here https://github.com/thegazelle-ad/gazelle-server/blob/bd025e01cb5f8937976e5b4f230a4ab4efbd8591/src/index.js#L1-L7
Possible Solution
Just remove the prototypes hacks and use lodash