7 lines
108 B
JavaScript
7 lines
108 B
JavaScript
module.exports = function (exec) {
|
|
try {
|
|
return !!exec();
|
|
} catch (error) {
|
|
return true;
|
|
}
|
|
};
|