UNPKG

@jplorg/jpl

Version:
25 lines (24 loc) 623 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _library = require("../../../library"); var _utils = require("../utils"); var _default = exports.default = { /** { pipe: [op] } */ op(runtime, input, target, params, scope, next) { return runtime.executeInstructions([{ op: _library.OP_NULL_COALESCENCE, params: { pipes: [(0, _utils.constant)(target), params.pipe ?? []] } }], [input], scope, next); }, /** { pipe: function } */ map(runtime, params) { return { pipe: (0, _utils.call)(params.pipe) }; } };