( a: unknown, b: unknown, options?: DiffOptions, )
| 485 | } |
| 486 | |
| 487 | export const diff = ( |
| 488 | a: unknown, |
| 489 | b: unknown, |
| 490 | options?: DiffOptions, |
| 491 | ): string | null => (shouldPrintDiff(a, b) ? diffDefault(a, b, options) : null); |
| 492 | |
| 493 | export const pluralize = (word: string, count: number): string => |
| 494 | `${NUMBERS[count] || count} ${word}${count === 1 ? '' : 's'}`; |
no test coverage detected