Closed browner12 closed 5 months ago
calling include on a string, and passing an array is not accomplishing the intended purpose. we really want to call .include() on an array, and pass the checked string.
include
.include()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
You rock 🤘
calling
include
on a string, and passing an array is not accomplishing the intended purpose. we really want to call.include()
on an array, and pass the checked string.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes