isObject.js 146 Bytes Edit Raw Blame History 1 2 3 4 5 const toString = Object.prototype.toString; export default function isObject ( thing ) { return toString.call( thing ) === '[object Object]'; }