UNPKG

i18n-js

Version:

A small library to provide I18n on JavaScript.

16 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inferType = void 0; function inferType(instance) { var _a, _b; if (instance === null) { return "null"; } const type = typeof instance; if (type !== "object") { return type; } return ((_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || "object"; } exports.inferType = inferType; //# sourceMappingURL=inferType.js.map