Skip to content

Instantly share code, notes, and snippets.

@opr
Created September 27, 2016 15:48
Show Gist options
  • Save opr/100650c65a1de19df3fe27dd4d43bb6c to your computer and use it in GitHub Desktop.
Save opr/100650c65a1de19df3fe27dd4d43bb6c to your computer and use it in GitHub Desktop.
function removeLargest(a_, b_, c_) {
let a = parseInt(a_),
b = parseInt(b_),
c = parseInt(c_);
return a > b ? ( a > c ? [b, c] : [a, b] ) : ( b > c ? [a, c] : [a, b] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment