UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

17 lines 667 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var expr_1 = __importDefault(require("./expr")); /** * * Creates a [sampler](https://connective.dev/docs/sampler). * A sampler passes on the last received value when receiving * a signal on its `.control`. * [Checkout the docs](https://connective.dev/docs/sampler) for examples and further information. * */ function sampler() { return expr_1.default(function (x) { return x; }); } exports.sampler = sampler; //# sourceMappingURL=sampler.js.map