• Safe access in tree object

    Example

    const obj = {
    a: {
    b: {
    c: {
    e: false
    }
    }
    }
    };

    console.log(Jodit.modules.Helpers.get('a.b.c.d.e', obj) === false); // true
    console.log(Jodit.modules.Helpers.get('a.b.a.d.e', obj) === null); // false

    Type Parameters

    • T

    Parameters

    Returns Nullable<T>

Jodit PRO

If you like Jodit - try Jodit PRO