UNPKG

ractive

Version:

Next-generation DOM manipulation

7 lines (5 loc) 236 B
var toString = Object.prototype.toString; // thanks, http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/ export default function ( thing ) { return toString.call( thing ) === '[object Array]'; }