2.1.2 • Published 5 years ago
object-assign-x v2.1.2
object-assign-x
Used to copy the values of all enumerable own properties from one or more source objects to a target object.
module.exports
⇒ Object ⏏
This method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.
Kind: Exported member
Returns: Object - The target object.
Throws:
- TypeError If target is null or undefined.
Param | Type | Description |
---|---|---|
target | * | The target object. |
...source | * | The source object(s). |
Example
import assign from 'object-assign-x';
const obj = {a: 1};
const copy = assign({}, obj);
console.log(copy); // { a: 1 }
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.14
5 years ago
2.0.13
5 years ago
2.0.12
5 years ago
2.0.11
5 years ago
2.0.10
5 years ago
2.0.9
5 years ago
2.0.8
5 years ago
2.0.7
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.1.0
7 years ago
1.0.0
7 years ago