/** * Executes the given function immediately. If the function throws or rejects, then * the error is caught and sent to the console. * * @param {Function} fn * * @returns {void} * @category Promises */ export default function catcher(fn: Function): void;