Is this:
const isEmbedded = className.indexOf('embedded') > -1 ? true : false
Which can be fixed like this:
const isEmbedded = className.indexOf('embedded') > -1
Or, even better:
const isEmbedded = className.includes('embedded')
Is this:
const isEmbedded = className.indexOf('embedded') > -1 ? true : false
Which can be fixed like this:
const isEmbedded = className.indexOf('embedded') > -1
Or, even better:
const isEmbedded = className.includes('embedded')
For further actions, you may consider blocking this person and/or reporting abuse
Mike Young -
Mike Young -
Mike Young -
Safdar Ali -
Top comments (2)
Love the last solution! β
Itβs true