Skip to content

Instantly share code, notes, and snippets.

@Elergy
Last active February 6, 2019 23:30
Show Gist options
  • Save Elergy/a0fb15745c740202798878ed2014a0f3 to your computer and use it in GitHub Desktop.
Save Elergy/a0fb15745c740202798878ed2014a0f3 to your computer and use it in GitHub Desktop.
// before
function isOutsideInterval(value, minimum, maximum) {
return value < minimum || value > maximum;
}
// after
function isOutsideInterval(value, minimum, maximum, limits) {
return value < minimum || value > maximum;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment