Create a gist now

Instantly share code, notes, and snippets.

function returnArgs() {
return arguments;
};
let array = [1, 2, 3, 4, 5];
returnArgs(...array); // [1, 2, 3, 4, 5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment