• Safe access in tree object

    Example

    const a = {}, b = {};
    Jodit.modules.Helpers.set('a.b.c.d.e', 1, a);
    console.log(a);// {a: {b: {c: {d: {e: 1}}}}}

    Jodit.modules.Helpers.set('a.0.e', 1, b);
    console.log(b);// {a: [{e: 1}]}

    Type Parameters

    • T

    Parameters

    • chain: string
    • value: unknown
    • obj: IDictionary<any, string>

    Returns void

Jodit PRO

If you like Jodit - try Jodit PRO