check string type is a function code example
Example 1: js test if string
if (typeof string === 'string') { /* code */ };
Example 2: check data type in js
typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword
if (typeof string === 'string') { /* code */ };
typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword