UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

13 lines (11 loc) 258 B
/** * If the first argument is falsy, throw an error using the second argument as a message. * @param {boolean} bool * @param {string} message */ function assert(bool, message) { if (!bool) { throw new Error(message); } } export default assert;