3 ms·
Yes, {**{'hello':1}, **{'world':2}} === {...{hello:1}, ...{world:2}} The name "kwargs" is unimportant, I'm referring to the ** operator itself. Edit: worth me
by jakear 4y ago
Yes, {**{'hello':1}, **{'world':2}} === {...{hello:1}, ...{world:2}}
The name "kwargs" is unimportant, I'm referring to the ** operator itself.
Edit: worth mentioning this applies in the consuming named arguments sense as well: ({arg1, arg2, ...rest}) => {}