Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Created March 16, 2015 17:24
Show Gist options
  • Save bgadrian/b64c71e4d1a38ccece99 to your computer and use it in GitHub Desktop.
Save bgadrian/b64c71e4d1a38ccece99 to your computer and use it in GitHub Desktop.
JS call a function with parameters, from an array.
function fn(){}
fn.apply(this, new Array(firstParam, Second, etc));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment