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

Add string utils and missing Array docs #11

Merged
merged 15 commits into from
Feb 27, 2019
Merged

Add string utils and missing Array docs #11

merged 15 commits into from
Feb 27, 2019

Conversation

brycehanscomb
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.9%) to 87.654% when pulling 7d97693 on brycehanscomb:master into 4028d56 on KablamoOSS:master.

@@ -0,0 +1,11 @@
const replaceAll = (replaceThis: string, withThis: string, inThis: string): string => {
Copy link
Member

Choose a reason for hiding this comment

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

Is replaceAll necessary when we have haystack.replace(/needle/g, replacement)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

technically none of these atomic utils are necessary, but creating a function allows the developer to never need to think of the implementation details.

Plus, putting this in a function makes for nicer FP .map-ing

@ojkelly ojkelly self-requested a review February 27, 2019 04:45
@ojkelly ojkelly merged commit 061e23a into KablamoOSS:master Feb 27, 2019
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.

None yet

4 participants