si-funciona 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1607,7 +1607,8 @@
1607
1607
  let commonDivisor = numbers.reduce((num1, num2) => (0, _greatestCommonDivisor.default)(num1, num2), 0)
1608
1608
  // Set to positive so that when we divide the numbers they retain their +/-
1609
1609
  commonDivisor = Math.abs(commonDivisor)
1610
- return numbers.map(num => num / commonDivisor)
1610
+ // Simplify the numbers, handle zero
1611
+ return numbers.map(num => commonDivisor === 0 ? 0 : num / commonDivisor)
1611
1612
  }
1612
1613
  var _default = exports.default = simplestRatio
1613
1614
  }, { './greatestCommonDivisor': 38, 'core-js/stable': 713 }],