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
Michael Z -
Aravind Roy -
Harish Kumar -
xavier2code -
Top comments (2)
Love the last solution! β
Itβs true