@arrows/dispatch
Version:
Functional dispatch library
11 lines (10 loc) • 335 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const curry_1 = require("@arrows/composition/curry");
const rawIs = (prototype, value) => value instanceof prototype;
/**
* Checks if a value is an instance of a prototype/class.
*/
const is = curry_1.default(rawIs);
exports.is = is;
exports.default = is;