// ported from jQuery's $.type
const classToType = {};
for (let name of [
    'Boolean',
    'Number',
    'String',
    'Function',
    'Array',
    'Date',
    'RegExp',
    'Undefined',
    'Null'
]) {
    classToType[`[object ${name}]`] = name.toLowerCase();
}
function type (obj) {
    return classToType[Object.prototype.toString.call(obj)] || 'object';
}

export { type as default };
//# sourceMappingURL=type.mjs.map
