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

Contains method for Strings #83

Closed
luxeon opened this issue Jul 15, 2015 · 0 comments

Comments

@luxeon
Copy link

commented Jul 15, 2015

Would be great to add support for contains method for String. Sometimes java developers are using contains method instead of indexOf and it produces errors. Would be great to add something like that:

String.prototype.contains = function(it) { return this.indexOf(it) != -1; };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.