.
This commit is contained in:
1 parent
65a0be1350
commit
06acaecee1
12267 files changed
+671638
-15
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
export default function assign(target, object) {
|
||||
if (target == null) {
|
||||
throw new TypeError('assign requires that input parameter not be null or undefined');
|
||||
}
|
||||
for (var property in object) {
|
||||
if (Object.prototype.hasOwnProperty.call(object, property)) {
|
||||
;
|
||||
target[property] = object[property];
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
Reference in new issue
Block a user