(refactor) use object spread syntax

This commit is contained in:
Kim Biesbjerg
2019-06-11 12:54:50 +02:00
parent d07d81681e
commit 590f58fff3
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ export class ExtractTask implements TaskInterface {
protected _compiler: CompilerInterface;
public constructor(protected _input: string[], protected _output: string[], options?: ExtractTaskOptionsInterface) {
this._options = Object.assign({}, this._options, options);
this._options = { ...this._options, ...options };
}
public execute(): void {