Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

contains is not a function javascript

Try o.color.includes(this.color) instead.

"contains" is deprecated. You should use "includes" instead.
 
PREVIOUS NEXT
Tagged: #function #javascript
ADD COMMENT
Topic
Name
4+9 =