// push into an array Vanillar JS var files = []; registerFile function (files) { Array.prototype.push.apply(files, files); }