1
0
Fork 0
arangodb/js/node/node_modules/es5-ext/string/is-string.js

11 lines
255 B
JavaScript

'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;
};