'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * * @type {Function|function(*):string} */ const protoType = Function.prototype.call.bind(Object.prototype.toString); /** * const rxObj = /^\[object (.*)]$/ * Equivalent to: Object.prototype.stringify.call(o).match(rxObj)[1] * @param {*} o * @return {string} */ const typ = o => protoType(o).slice(8, -1); exports.protoType = protoType; exports.typ = typ;