Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Improve String.prototype.contains polyfill#556

Merged
arv merged 1 commit into
google:masterfrom
mathiasbynens:fix-String.prototype.contains
Dec 17, 2013
Merged

Improve String.prototype.contains polyfill#556
arv merged 1 commit into
google:masterfrom
mathiasbynens:fix-String.prototype.contains

Conversation

@mathiasbynens

Copy link
Copy Markdown
Member

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

@arv

arv commented Dec 17, 2013

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants