UNPKG

variable-type

Version:

Runtime type checking for variable and similar objects.

20 lines 530 B
"use strict"; /** * Created by hustcc on 17/08/01. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var Type_1 = __importDefault(require("../Type")); /** * 实例比较 * @param o * @returns {Type} */ function default_1(o) { return new Type_1.default(function (v) { return v instanceof o; }); } exports.default = default_1; ; //# sourceMappingURL=instanceOf.js.map