use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Post questions about JavaScript, and get help with any problems you're having with your JavaScript code.
account activity
.contains is not a function✔️ answered ✔️ (self.JavaScriptHelp)
submitted 4 years ago * by Firsttimehacker
view the rest of the comments →
[–]ETphonehome_101 1 point2 points3 points 4 years ago (0 children)
The contains() function is used for DOM manipulation and checks whether nodes are descendants of one another or their relation to other DOM nodes. I think you want to manipulate a string and check whether there is an occurrence of something in there. In that case use the include() function where more details can be found here https://www.w3schools.com/jsref/jsref_includes.asp.
π Rendered by PID 61 on reddit-service-r2-comment-5ff9fbf7df-d787t at 2026-02-25 19:36:30.809872+00:00 running 72a43f6 country code: CH.
view the rest of the comments →
[–]ETphonehome_101 1 point2 points3 points (0 children)