Last active
February 6, 2023 00:25
-
-
Save bestpika/10678f8f5d3e9f2f5ba97ff68331ceba to your computer and use it in GitHub Desktop.
Radar notification sample code
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
const pastValue = pastValues[-1].primaryValue | |
const diff = primaryValue - pastValue | |
notificationText = diff !== 0 ? `... ${primaryValue} (${diff})` : null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment