Published
- 1 min read
js is function
The solution for this is noted below
js is function
Solution
if (typeof test === 'function') {
console.log('test is a function')
} else {
console.log('test is not a function')
}
Try other methods by searching on the site. That is if this doesn’t work