creynders / chainable-object

Create objects with chainable properties
4 stars 2 forks source link

Can you remove the lodash dependence? #7

Open dannypr opened 8 years ago

dannypr commented 8 years ago

Excuse me, I took a quick look at the source code. It seems that the _.each \ is the only function be used. I want to include this lib in a web page, so less codes loading will make users feel better(or maybe just myself).

creynders commented 8 years ago

Hi @dannypr, a few more methods are used as well: isArray, etc. Using webpack or browserify you can replace the lodash module with any module that implements those methods though: https://github.com/creynders/chainable-object#installation-and-other-shizzle

You could create a lodash-custom module if you want which only pulls in the relevant methods and exports those. If you need more help let me know.