function foo(x, ...args) { console.log(x, args, ...args, arguments); } foo('a', 'b', 'c', z='d') => a Array(3) [ "b", "c", "d" ] b c d Arguments 0: "a" 1: "b" 2: "c" 3: "d" length: 4
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter