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
Devops Den -
Mike Young -
Mike Young -
bing -
Top comments (2)
Love the last solution! β
Itβs true