pump-io / pump.io

Social server with an ActivityStreams API
http://pump.io/
Apache License 2.0
2.22k stars 333 forks source link

Convert (some) Lodash to vanilla JS #1384

Open strugee opened 7 years ago

strugee commented 7 years ago

Some things that Lodash provides, like e.g. _.map, can be done just as well with regular JavaScript, with e.g. Array#forEach. We should convert all these calls to their native equivalents.

ghost commented 7 years ago

Why?

strugee commented 7 years ago

Because some people might be more familiar with the standard library than Lodash, and because the native implementation will probably be more performant.