1 | ;
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 | /**
|
6 | *
|
7 | * @type {Function|function(*):string}
|
8 | */
|
9 | const protoType = Function.prototype.call.bind(Object.prototype.toString);
|
10 | /**
|
11 | * const rxObj = /^\[object (.*)]$/
|
12 | * Equivalent to: Object.prototype.stringify.call(o).match(rxObj)[1]
|
13 | * @param {*} o
|
14 | * @return {string}
|
15 | */
|
16 |
|
17 | const typ = o => protoType(o).slice(8, -1);
|
18 |
|
19 | exports.protoType = protoType;
|
20 | exports.typ = typ;
|