js-try

JS-try is a Javascript implementation of the try method from Rails for safe navigation

safe-navigation-js

Javascript ES6 safe navigation based on https://gist.github.com/dakaraphi/6a87168db66fd8f032d2