fails.js 108 Bytes
Newer Older
Natthaphong Malaphan's avatar
Natthaphong Malaphan committed
1 2 3 4 5 6 7
module.exports = function (exec) {
  try {
    return !!exec();
  } catch (error) {
    return true;
  }
};