update arguments object to rest args and remove array.from(s)

This commit is contained in:
Philip Weiss
2018-01-19 10:31:10 -08:00
parent a18200d675
commit 86ba6cbfe4

View File

@@ -618,7 +618,7 @@ class Config {
let keyPath, options, scope
if (args.length > 1) {
if ((typeof args[0] === 'string') || (args[0] == null)) {
[keyPath, options] = args;
[keyPath, options] = Array.from(args);
({scope} = options)
}
} else {