Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"use strict";
var log = function log(x) {
console.log(x);
};
var ary = [10, 23, 4, 0, 77];
var a = ary.push(50);
log(ary); // [10, 23, 4, 0, 77, 50]
var b = ary.push([10, 5, 3]);
log(ary); // [10, 23, 4, 0, 77, 50, [10, 5, 3]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment