contém não é uma função javascript
Try o.color.includes(this.color) instead.
"contains" is deprecated. You should use "includes" instead.
serhii.nahornyi
Try o.color.includes(this.color) instead.
"contains" is deprecated. You should use "includes" instead.