Skip to content

Commit bbb7d3f

Browse files
committed
πŸŽ“ Graduate "count"
1 parent 5fe3889 commit bbb7d3f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

β€Žpackages/count/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
const original = require('ordinal');
2-
const ordinal = num => num < 0
3-
? ['-', original(Math.abs(num))].join('')
4-
: original(num);
1+
const ordinal = require('ordinal');
52

63
let current = 0;
74

β€Žpackages/count/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lets/count",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"description": "πŸ”’ Consistent counter",
55
"keywords": [
66
"count",
@@ -24,6 +24,6 @@
2424
"test": "cd ../../; npm t packages/count; cd -"
2525
},
2626
"dependencies": {
27-
"ordinal": "^1.0.2"
27+
"ordinal": "^1.0.3"
2828
}
2929
}

0 commit comments

Comments
Β (0)