Skip to content

Instantly share code, notes, and snippets.

@koistya
Created March 4, 2012 20:44
Show Gist options
  • Save koistya/1974712 to your computer and use it in GitHub Desktop.
Save koistya/1974712 to your computer and use it in GitHub Desktop.
Convert an array-like object to a true array
/**
* A utility function to convert an array-like object (or suffix of it) to a true array.
*/
function (arr, start /* optional */) {
return Array.prototype.slice.call(arr, start || 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment