Commit e66575e3 authored by Alexis Reigel's avatar Alexis Reigel Committed by Winnie Hellmann

use default value arguments syntax

(cherry picked from commit 074dd4b3cbb057195428c499e6f285f24313cc2b)
parent 3b4cc6ef
export default class FilteredSearchTokenKeys {
constructor(tokenKeys, alternativeTokenKeys, conditions) {
this.tokenKeys = tokenKeys || [];
this.alternativeTokenKeys = alternativeTokenKeys || [];
this.conditions = conditions || [];
constructor(tokenKeys = [], alternativeTokenKeys = [], conditions = []) {
this.tokenKeys = tokenKeys;
this.alternativeTokenKeys = alternativeTokenKeys;
this.conditions = conditions;
this.tokenKeysWithAlternative = this.tokenKeys.concat(this.alternativeTokenKeys);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment