1
0

is-string.js 255 B

12345678910
  1. 'use strict';
  2. var toString = Object.prototype.toString
  3. , id = toString.call('');
  4. module.exports = function (x) {
  5. return (typeof x === 'string') || (x && (typeof x === 'object') &&
  6. ((x instanceof String) || (toString.call(x) === id))) || false;
  7. };