include node modules

This commit is contained in:
Opportunity
2019-09-30 17:55:21 +08:00
Unverified
parent cf5188b310
commit 7c2a9b6f1c
371 changed files with 74540 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
'use strict'
/**
* Tries to execute a function and discards any error that occurs.
* @param {Function} fn - Function that might or might not throw an error.
* @returns {?*} Return-value of the function when no error occurred.
*/
module.exports = function(fn) {
try { return fn() } catch (e) {}
}