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

Improve String.prototype.contains polyfill #556

Merged
merged 1 commit into from
Dec 17, 2013
Merged

Improve String.prototype.contains polyfill #556

merged 1 commit into from
Dec 17, 2013

Conversation

mathiasbynens
Copy link
Member

This patch replaces the old String.prototype.contains polyfill with http://mths.be/contains, while also adding the tests from that project.

This patch replaces the old `String.prototype.contains` polyfill with http://mths.be/contains, while also adding the tests from that project.
@arv
Copy link
Collaborator

arv commented Dec 17, 2013

LGTM

I didn't know that contains takes a position param. I guess it makes sense even though I don't think we should have added the position parameters to these in the first place.

@arv arv merged commit 18c5d55 into google:master Dec 17, 2013
mathiasbynens added a commit to mathiasbynens/String.prototype.includes that referenced this pull request Dec 18, 2013
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.

2 participants