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
Carrie -
Mohammad Shakibul -
Muchhal Sagar -
guest blogging technology -
Top comments (2)
Love the last solution! ✌
It’s true