You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any takers for the Javascript 1.7 syntax of skipping values?
[a,, b] = [x, y, z]
is roughly
__a = [x, y, z]
a = __a[0]
b = __a[2]
Also, how about splats?
[a, b...] = [x, y, z]
to
__a = [x, y, z]
a = __a[0]
b = Array.prototype.slice.call(__a, 1)
The text was updated successfully, but these errors were encountered:
Any takers for the Javascript 1.7 syntax of skipping values?
[a,, b] = [x, y, z]
is roughly
__a = [x, y, z]
a = __a[0]
b = __a[2]
Also, how about splats?
[a, b...] = [x, y, z]
to
__a = [x, y, z]
a = __a[0]
b = Array.prototype.slice.call(__a, 1)
The text was updated successfully, but these errors were encountered: