Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created September 20, 2015 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/ebd8f56ceaeba656816a to your computer and use it in GitHub Desktop.
Save chuck0523/ebd8f56ceaeba656816a to your computer and use it in GitHub Desktop.
"use strict";
var log = function log(x) {
console.log(x);
};
var ary1 = [10, 23, 4, 0, 77];
var ary2 = ['apple', 'peach', 'orange'];
var a = ary1.concat(ary2);
log(a); // [ 10, 23, 4, 0, 77, 'apple', 'peach', 'orange' ]
var b = ary1.concat(false, [null, NaN]);
log(b); //[ 10, 23, 4, 0, 77, false, null, NaN ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment