Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.10/nice-try/src/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.10/nice-try/src/index.js

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

}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists