Skip to content

Instantly share code, notes, and snippets.

@MaximStone
Created October 8, 2018 12:03
Show Gist options
  • Select an option

  • Save MaximStone/04a014e23643744be8061b123e77ef90 to your computer and use it in GitHub Desktop.

Select an option

Save MaximStone/04a014e23643744be8061b123e77ef90 to your computer and use it in GitHub Desktop.
Рефакторинг функции
function lastIndexOfTwo(str, value1, value2) {
return Math.max(str.lastIndexOf(value1), s.lastIndexOf(value2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment