JSFiddle - React, Tailwind, and code Playground

by ChrisStanyon

JavaScript

var strVal = "Surname2";



let cont = ['Surname','Firstname','Address','Email'].includes(strVal)
console.log(cont)