Strips a plural 's' suffix from a string if it ends with 's' and is longer than 3 characters.
The plural string
The singular string
singular('apples'); // 'apple' Copy
singular('apples'); // 'apple'
Strips a plural 's' suffix from a string if it ends with 's' and is longer than 3 characters.