thegazelle-ad / gazelle-server

Server for front-end and editor tools of The Gazelle
MIT License
19 stars 8 forks source link

Remove flatten hack and use lodash #424

Open emilgoldsmith opened 6 years ago

emilgoldsmith commented 6 years ago

Expected Behavior

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)

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