JSFiddle - React, Tailwind, and code Playground
JavaScript
var supportedCards = ['4', '5'];
var index = $.inArray('5', supportedCards);
console.log(index)
if ( index !== -1) {
console.log('yes')
} else {
console.log('no')
}
var supportedCards = ['4', '5'];
var index = $.inArray('5', supportedCards);
console.log(index)
if ( index !== -1) {
console.log('yes')
} else {
console.log('no')
}