Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

lolodash

wolfenrain8MITdeprecated1.0.0TypeScript support: included

this package has been deprecated

Inspired by Scala's Try classes (including Success and Failure).

readme

pipeline status coverage report

lolodash__

Inspired by Scala's Try classes (including Success and Failure).

Go lolodash__ or go nono

By using lolodash you can avoid most try-catch blocks in your code. That is because lolodash wraps around possible exceptions and simply returns whether it succeeded or failed.

Don't get it? Here is an example that will always succeed:

let result = __<User>(() => userFactory.create('Jack'))
                .map(e => e.name)
                .map(e => e.substr(-1) === 'k')
                .value;

// Result will be true.
console.log(result);