I just stumble with this line of code and I'm struggling to understand what it means:
const selected = find(this.list, {
[this.keyName]: control[0]
? control[0][this.keyName]
: control.value
});
The part that confuse me is [this.keyName]: control[0] ? control[0][this.keyName] : control.value
... what exactly means [this.keyName]: control[0]
as a condition ?