← Code LabReact Native0/50 solved · 0%
Testing · medium

32. A unit-testable formatter

Write logic the way you would test it directly, no rendering needed.

Write `pluralize(count, singular, plural)` returning `` `${count} ${count === 1 ? singular : plural}` ``.
Required in your answer: ? singular