Skip to content

Instantly share code, notes, and snippets.

@mcattx
Created January 16, 2016 07:24
Show Gist options
  • Select an option

  • Save mcattx/a715ecb5d6ac99d6ee9c to your computer and use it in GitHub Desktop.

Select an option

Save mcattx/a715ecb5d6ac99d6ee9c to your computer and use it in GitHub Desktop.
JS 常用的一些小 trick
//找出数组里数值最小的一个,仅适用于 Number Array
Math.min.apply({}, array);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment