Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

remove lodash and use es6 / es7#47

Open
InsidersByte wants to merge 1 commit into
kmoe:masterfrom
InsidersByte:remove_lodash
Open

remove lodash and use es6 / es7#47
InsidersByte wants to merge 1 commit into
kmoe:masterfrom
InsidersByte:remove_lodash

Conversation

@InsidersByte
Copy link
Copy Markdown

No description provided.

Comment thread package.json
"geolib": "^2.0.21",
"lodash": "^4.14.0",
"loggly": "^1.1.0",
"object.values": "^1.0.3",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so... we're replacing lodash with object.values?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no that's just to shim the Object.values function

Comment thread index.js
_.forEach(encounters, (encounter) => {
hbPokemon.push(encounter);
});
const hbPokemon = Object.values(encounters);
Copy link
Copy Markdown
Author

@InsidersByte InsidersByte Aug 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is where Object.values is used (see mozilla docs)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants