/ piacw.com / dev / final / node_modules / nice-try /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]src/2 years ago -  
[   ]package.json2 years ago1.5K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago1.1K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]LICENSE2 years ago1.1K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]CHANGELOG.md2 years ago457 0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

nice-try

Travis Build Status AppVeyor Status Coverage Status Dependencies Greenkeeper badge

A function that tries to execute a function and discards any error that occurs.

Install

npm install nice-try

Usage

const niceTry = require('nice-try')

niceTry(() => JSON.parse('true')) // true
niceTry(() => JSON.parse('truee')) // undefined
niceTry() // undefined
niceTry(true) // undefined

API

Parameters

Returns

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80