![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | src/ | 2 years ago | - | |
![]() | CHANGELOG.md | 2 years ago | 457 | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | LICENSE | 2 years ago | 1.1K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | README.md | 2 years ago | 1.1K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | package.json | 2 years ago | 1.5K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
A function that tries to execute a function and discards any error that occurs.
npm install nice-try
const niceTry = require('nice-try')
niceTry(() => JSON.parse('true')) // true
niceTry(() => JSON.parse('truee')) // undefined
niceTry() // undefined
niceTry(true) // undefined
fn
{Function}
Function that might or might not throw an error.{?*}
Return-value of the function when no error occurred.