function fuckAround(action: () => void, errorAction: (error: any) => void): void {
  try {
    action();
  } catch (error) {
    errorAction(error);
  }
};

export = fuckAround;