对象的Javascript推送数组

对象的Javascript推送数组,javascript,Javascript,我有两个数组,我想合并成一个数组。这是数组 var array1 = '1510207073874:File {name: "1.Login.png", lastModified: 1504530252000, lastModifiedDate: Mon Sep 04 2017 18:34:12 GMT+0530 (IST), webkitRelativePath: "", size: 34338}'; var array2 = '151020704875:File {name: "1.Logi

我有两个数组,我想合并成一个数组。这是数组

var array1 = '1510207073874:File {name: "1.Login.png", lastModified: 1504530252000, lastModifiedDate: Mon Sep 04 2017 18:34:12 GMT+0530 (IST), webkitRelativePath: "", size: 34338}';
var array2 = '151020704875:File {name: "1.Login.png", lastModified: 1504530252000, lastModifiedDate: Mon Sep 04 2017 18:34:12 GMT+0530 (IST), webkitRelativePath: "", size: 34338}';
我想将这两个数组合并为一个数组,如下所示:

var array3 = '1510207073874:File {name: "1.Login.png", lastModified: 1504530252000, lastModifiedDate: Mon Sep 04 2017 18:34:12 GMT+0530 (IST), webkitRelativePath: "", size: 34338},
'151020704875:File {name: "1.Login.png", lastModified: 1504530252000, lastModifiedDate: Mon Sep 04 2017 18:34:12 GMT+0530 (IST), webkitRelativePath: "", size: 34338}';

首先,你想要的不是合并,而是简单的连接。我认为可以使用“+”操作符将两个数组连接成一个数组,在javascript中数组是对象

var array3=array1 + array2;

问题代码处不显示任何数组输入或输出都不是有效数组或对象。它们只是字符串。对不起,我有对象字符串。如何合并到单个变量中。这甚至不是有效的stringify json