Sha256: 50572e87289125a1791eccea779d8cbdd642f27050bf81dba2fc75b039d8f481
Contents?: true
Size: 303 Bytes
Versions: 70
Compression:
Stored size: 303 Bytes
Contents
'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) {} }
Version data entries
70 entries across 69 versions & 10 rubygems