@webdeveric/utils
    Preparing search index...

    Function tryIt

    Call fn and return defaultValue instead of throwing if it fails.

    tryIt(() => JSON.parse('invalid'), {}); // {}
    tryIt(() => JSON.parse('{"a":1}')); // { a: 1 }