We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62c5c2 commit 1f9d84bCopy full SHA for 1f9d84b
src/index.js
@@ -3,7 +3,7 @@
3
* If an error is thrown during execution, the error is silently ignored and `undefined` is returned.
4
*
5
* @param {Function} fn - The function to execute.
6
- * @returns {*} The return value of the function, or `undefined` if an error occurred.
+ * @returns {any} The return value of the function, or `undefined` if an error occurred.
7
*/
8
export default function niceTry(fn) {
9
try {
0 commit comments