Most efficient way to replace null values in an array with 0?

Certified Associate Developer

Currently using a!forEach and a!isNullOrEmpty to replace all null values in an array of integers with 0, but would love to learn the most efficient way to do so. Is apply() the way to go here? A different function? Many thanks for any and all help!

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data