JSFiddle - React, Tailwind, and code Playground

by Eugene Manager

JavaScript

var supportedCards = ['4', '5'];
var index = $.inArray('5', supportedCards);
console.log(index)

if ( index !== -1) {
  console.log('yes')
  } else {
  console.log('no')
  }