Commit 145925a5 authored by Alexis Reigel's avatar Alexis Reigel

use default value arguments syntax

parent 6033859e
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