Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| '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) {} | |
| } |