UNPKG

jc-marked

Version:

Markdown AST (Abstract syntax tree) parser based on finite-state machine (FSM).

1 lines 573 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.exceptStringToRun=exports.pass=exports.noop=void 0;const is_1=require("./is"),exceptions_1=require("./exceptions"),noop=()=>{},pass=(exports.noop=noop,e=>{e?console.log(""+e):noop()});function exceptStringToRun(e,o,...t){if((0,is_1.isString)(e)){if((0,is_1.isFunction)(o))return o.apply({},t);throw(0,exceptions_1.ValueError)('param "func" for exceptString must be a function.')}throw(0,exceptions_1.InputTypeError)("string",typeof e)}exports.pass=pass,exports.exceptStringToRun=exceptStringToRun;