This commit is contained in:
Domen Kožar
2019-11-19 17:50:30 +01:00
parent cd5893b2c6
commit 70742d22d9
6774 changed files with 1602535 additions and 1 deletions

12
node_modules/nice-try/src/index.js generated vendored Normal file
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) {}
}