Last active
June 24, 2022 14:53
-
-
Save pushkar100/8497449e6d1dab9ed766cf1a5c5ffbe1 to your computer and use it in GitHub Desktop.
A helper module with a method that checks if a given timestamp is earlier than the current time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* src/helpers/index.js: */ | |
const isEarlierThanNow = (timestamp) => timestamp < Date.now(); | |
export { isEarlierThanNow }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment