JSFiddle - React, Tailwind, and code Playground
by bilbobaggins
JavaScript
let red=[ { "inputtype": "singleselect", "inputtypemod": "role", "inputtypeVal": "rolename", "inputtypeID": "roleid", "inputParent": "role", "inputCustomMapping": "role", "selecttype": "singleselect", "inputtextval": "rolename", "inputname": "roleid", "inputplaceholder": "Please enter name", "fieldtypename": "INTEGER", "fieldvalidatename": "number", "fieldmaxlength": "80" }, { "inputtype": "multiselect", "inputtypemod": "modname", "inputtypeVal": "mname", "inputtypeID": "modnameid", "inputParent": "modname", "inputCustomMapping": "modname", "selecttype": "multiselect", "inputtextval": "mname", "inputname": "modnameid", "inputplaceholder": "Please enter name", "fieldtypename": "INTEGER", "fieldvalidatename": "number", "fieldmaxlength": "80" }, { "inputtype": "multiselect", "inputtypemod": "accesstype", "inputtypeVal": "accesstype", "inputtypeID": "accesstype", "inputParent": "accesstype", "inputCustomMapping": "accesstype", "selecttype": "multiselect", "inputtextval": "accesstype", "inputname": "accesstype", "inputplaceholder": "Please enter name", "fieldtypename": "INTEGER", "fieldvalidatename": "number", "fieldmaxlength": "80", "childcontent": [ { "val": "VO", "text": "ViewOnly" }, { "val": "AA", "text": "AllAccess" } ] } ]
let red1=red.map(a=>a.inputtype).includes('multiselect','singleselect')
console.log(red1)