title: replace the NaN value zero after an operation with arrays
body: <p>how can I replace the NaN value in an array, zero if an operation is performed such that as a result instead of the NaN value is zero operations as</p>
  
  <p>0 / 0 = NaN can be replaced by 0</p>