Forum Discussion

tarena's avatar
tarena
New Contributor III
3 years ago

Arrow Function Parameters

I’m trying to understand the documentation for the Array function toObject. It uses [‘zero’, ‘one’, ‘two’].toObject((x, index) => index, x => x.contains(‘two’)) as an example, which returns {“0”: f...