Sets a value for a key in an object and returns the value.
The type of the values in the object.
The object in which to set the value.
The key for which to set the value.
The value to set.
The value that was set.
objSet({ a: 1, b: 2 }, 'a', 3);;//=> { a: 3, b: 2 } Copy
objSet({ a: 1, b: 2 }, 'a', 3);;//=> { a: 3, b: 2 }
Generated using TypeDoc
Sets a value for a key in an object and returns the value.