Posts tagged with es5


Arguments [Link, Link] function f(x, y) { console.log(x, y); return toArray(arguments); } > f('a', 'b', 'c') > a b > [ 'a', 'b', 'c' ] The IIFE Pattern [Link] (function () { // open IIFE var tmp…