* Check whether a value looks like a Fraction (unsafe duck-type check) * @param {*} value * @return {boolean}
(value)
| 189 | * @return {boolean} |
| 190 | */ |
| 191 | function looksLikeFraction (value) { |
| 192 | return (value && |
| 193 | typeof value === 'object' && |
| 194 | typeof value.s === 'bigint' && |
| 195 | typeof value.n === 'bigint' && |
| 196 | typeof value.d === 'bigint') || false |
| 197 | } |
| 198 | |
| 199 | /** |
| 200 | * Compare two strings |
no outgoing calls
no test coverage detected
searching dependent graphs…