util.js 240 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 export function isArray(obj) { return Object.prototype.toString.call(obj) === "[object Array]" } // Checks if an object has a property. export function has(obj, propName) { return Object.prototype.hasOwnProperty.call(obj, propName) }