@webdeveric/utils
    Preparing search index...

    Function tryFn

    Wrap fn so calling it returns defaultValue instead of throwing.

    const parse = tryFn(JSON.parse, {});

    parse('invalid'); // {}
    parse('{"a":1}'); // { a: 1 }