JSFiddle - React, Tailwind, and code Playground
JavaScript
const context = 'tablet'
const toHide = ['tablet', 'desktop']
console.log( toHide.indexOf(context) < 0 )
const context = 'tablet'
const toHide = ['tablet', 'desktop']
console.log( toHide.indexOf(context) < 0 )