num2fraction
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -26,3 +26,3 @@ 'use strict'; | ||
function num2fraction(num) { | ||
if (num === 0) return 0 | ||
if (num === 0 || num === '0') return '0' | ||
@@ -47,3 +47,5 @@ if (typeof num === 'string') { | ||
console.log(num2fraction('0')) | ||
module.exports = num2fraction | ||
{ | ||
"name": "num2fraction", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Convert number to fraction", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -60,2 +60,6 @@ # num2fraction | ||
### v1.2.1 | ||
* \+ Fix: 0 must be converted to a string. | ||
### v1.2.0 | ||
@@ -62,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5332
35
84