mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Readability improvement when copying array
This commit is contained in:
@@ -68,7 +68,7 @@ function merge(into: Discards, from: Discards): void {
|
||||
intoValue.push.apply(intoValue, fromValue);
|
||||
} else {
|
||||
// Make a defensive copy of any arrays passed to `Npm.strip`.
|
||||
into[packageName] = fromValue.slice(0);
|
||||
into[packageName] = Array.from(fromValue);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user