Plato on Github
Report Home
node_modules/es5-ext/string/is-string.js
Maintainability
86.71
Lines of code
10
Difficulty
9.17
Estimated Errors
0.08
Function weight
By Complexity
By SLOC
'use strict'; var toString = Object.prototype.toString , id = toString.call(''); module.exports = function (x) { return (typeof x === 'string') || (x && (typeof x === 'object') && ((x instanceof String) || (toString.call(x) === id))) || false; };