Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lodash get #1013

Merged
merged 2 commits into from
Mar 5, 2019
Merged

Remove lodash get #1013

merged 2 commits into from
Mar 5, 2019

Conversation

AndrewMusgrave
Copy link
Member

WHY are these changes introduced?

Part of removing lodash #991

WHAT is this pull request doing?

Creating a get function and using that instead of _.get

How to 🎩

Test pass? 💯

TODO:

  • add changelog

@BPScott BPScott temporarily deployed to polaris-react-pr-1013 February 11, 2019 22:09 Inactive
@BPScott BPScott temporarily deployed to polaris-react-pr-1013 February 11, 2019 22:14 Inactive
@solonaarmstrong-zz
Copy link

In case you didn't know, if this doesn't need a changelog entry, you can add the Skip Changelog label to the PR and get that sweet green ✅

Copy link

@solonaarmstrong-zz solonaarmstrong-zz left a comment

Choose a reason for hiding this comment

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

Just a few questions, but looks 👌

@BPScott BPScott temporarily deployed to polaris-react-pr-1013 February 28, 2019 23:44 Inactive
@@ -0,0 +1,32 @@
import {GeneralObject} from '../types';

const OBJECT_NOTATION_MATCHER = /\[(.*?)\]|(\w+)/g;
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm by no means a regex wizard so all suggestions are greatly welcomed 🙏

@BPScott BPScott temporarily deployed to polaris-react-pr-1013 February 28, 2019 23:48 Inactive
Copy link
Contributor

@elileto elileto left a comment

Choose a reason for hiding this comment

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

Looks mighty fine! I tried everything I could think of to break it.. but alas the regex is strong with this one. 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants