skip to Main Content

Big O notation for .forEach with .find – Javascript

What is the big O notation for the following code? _data.validatorInfo.result.validators.forEach((_validator) => { let del = { delegation: _data.delegations.result.delegation_responses.find( res => res.delegation.validator_address === _validator.operator_address ), validator: _validator, rewards: _data.totalRewards.result.rewards.find( re => re.validator_address === _validator.operator_address ) } result.delegations.push(del); }) Since it…

VIEW QUESTION
Back To Top
Search