Closed RazvanBugoi closed 4 years ago
https://www.codewars.com/kata/56453a12fcee9a6c4700009c/train/javascript
function closeCompare(a, b, margin = 0){ if (margin >= (Math.max(a,b) - Math.min(a,b))) { return 0; } else if(a < b) { return -1; } else return 1; }
https://www.codewars.com/kata/56453a12fcee9a6c4700009c/train/javascript