Update node_modules

This commit is contained in:
crazy-max committed 2020-01-23 08:49:02 +00:00
1 parent 80426e98c8
commit c8a47ad4bb
9923 files changed
+950627 -38

No files matched your search

+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) {}
}