UNPKG

@commodo/fields-storage-ref

Version:

We're working hard to get all the docs in order. New articles will be added daily.

31 lines (23 loc) 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _name = require("@commodo/name"); var _default = (instance, instanceOf) => { if (Array.isArray(instanceOf)) { if (instanceOf.length === 0) { return true; } for (let i = 0; i < instanceOf.length; i++) { let instanceOfElement = instanceOf[i]; if ((0, _name.getName)(instance) === (0, _name.getName)(instanceOfElement)) { return true; } } return false; } return (0, _name.getName)(instance) === (0, _name.getName)(instanceOf); }; exports.default = _default; //# sourceMappingURL=instanceOf.js.map