Skip to content

Commit 05681d8

Browse files
committed
Update string.js
* Use module.exports instead of export Compatible with earlier Node.js versions. Closes #17
1 parent 20f7308 commit 05681d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/string.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
export function pluralise(count, string) {
1+
const pluralise = (count, string) => {
22
if (count !== 1) {
33
return `${string}s`
44
}
55
return string
66
}
7+
8+
module.exports = { pluralise }

0 commit comments

Comments
 (0)