UNPKG

ractive

Version:

Next-generation DOM manipulation

6 lines (4 loc) 200 B
var toString = Object.prototype.toString; export default function ( thing ) { return ( typeof thing === 'string' || (typeof thing === 'object' && toString.call( thing ) === '[object String]') ); }