Created
April 9, 2018 06:08
-
-
Save stackdumper/cf655505bb10418c5c0b328881f6a65a to your computer and use it in GitHub Desktop.
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 getFreq = (pos, divider, offset) => pos > divider - offset | |
? pos < divider + offset ? divider - offset : divider + offset - (pos - (divider - offset)) | |
: pos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment