UNPKG

svelte-tiptap

Version:
9 lines (8 loc) 221 B
export const invariant = (condition, msg) => { if (!condition) { throw new Error(msg); } }; export const runIfFn = (value, ...args) => { return typeof value === 'function' ? value(...args) : value; };