CIDARLAB / 3DuF

Default parameters should be placed after non-default ones JS-0302
Anti-pattern
Major
15 days ago3 years old
Default parameters should be last
12
13    private _params: Params;
14
15    constructor(id: string = ComponentAPI.generateID(), macro:string, geometricOperation: GeometricOperationType, layer: Layer, params: { [k: string]: any } = {}) {16        this._id = id;
17        this._macro = macro;
18        this._geometricOperation = geometricOperation;