DEV Community

Discussion on: Creating a simple Vue pluralize filter

Collapse
 
gnclmorais profile image
Gonçalo Morais

Nice tip! Looking at the documentation, if you add true to your return pluralize(value, number) (making it return pluralize(value, number, true)), you could remove the first {{}} and have it simply {{ 'tunnel' | pluralize(tunnels) }}.