Skip to content

Instantly share code, notes, and snippets.

@iamgoangle
Created August 11, 2017 08:54
Show Gist options
  • Select an option

  • Save iamgoangle/743dfddd8f2c44fcdfea3214f745dd28 to your computer and use it in GitHub Desktop.

Select an option

Save iamgoangle/743dfddd8f2c44fcdfea3214f745dd28 to your computer and use it in GitHub Desktop.
Using Math.min()
let number = [9, 8, 7, 1];
console.log(Math.min(number)); // NaN
console.log(Math.min(...number)); // 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment