JS – find currentClosetTo()

By | Tutourial & Tips

Scenario: For every minute that passes, we want to find the closest(current minute for example 2) to the closest step_num (e.g. steps of 3). So for this, if its 2 then its closer to 3. If its 4 then its still closer to 3. If its 5 then its not…

Read More