• Puts the property value indicated by the given selector into the object

    Example

    const obj = { selector: { to: { val: 'val to select' } } };
    set(obj, 'selector.to.val', 'new value');
    // obj -> { selector: { to: { val: 'new value' } } }

    Parameters

    • obj: Record<string, unknown>
    • path: string
    • value: unknown

    Returns void

Generated using TypeDoc