A function that tries to execute a function and discards any error that occurs.
const niceTry = require('nice-try')
niceTry(() => JSON.parse('true')) // true
niceTry(() => JSON.parse('truee')) // undefined
niceTry() // undefined
niceTry(true) // undefined