// 1. concat
toArray(): Negotiation[] {
return [].concat(this._negotiations);
}
// 2. push.apply
toArray(): Negotiation[] {
return [].push.apply(this._negotiations);
}
// 3. operador spread (...)
toArray(): Negotiation[] {
return [...this._negotiations];
}