(numberOrString)
| 45 | * @returns {string} The number as a string without leading zeros. |
| 46 | */ |
| 47 | const removeLeadingZeros = (numberOrString) => |
| 48 | // Convert 0.03 to '.03' |
| 49 | numberOrString.toString().replace(/^(-?)(0)(\.?.+)/v, '$1$3'); |
| 50 | /** |
| 51 | * Given three points, returns if the middle one (x2, y2) is collinear |
| 52 | * to the line formed by the two limit points. |
no outgoing calls
no test coverage detected
searching dependent graphs…