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
T Sudhish Nair -
Akshay Jain -
Mohammad Faisal -
Lukas Karsch -
Top comments (2)
Love the last solution! β
Itβs true