adding epoch function and making date a number
This commit is contained in:
1 parent
039bca1571
commit
d4690f3295
4 files changed
+11
-7
No files matched your search
@@ -11,4 +11,6 @@ export const slugify = (text) => {
|
||||
.replace(/-+$/, '')
|
||||
}
|
||||
|
||||
export default { capitalize, slugify }
|
||||
export const epoch = () => {
|
||||
return Math.round(new Date().getTime() / 1000)
|
||||
}
|
||||
Reference in new issue
Block a user