Published
- 1 min read
typescript sugar syntax
The solution for this is noted below
typescript sugar syntax
Solution
function getName(name) {
return !!(name.indexOf('John') > -1)
}
Try other methods by searching on the site. That is if this doesn’t work