I have got a 3D array and I want to make another copy of it into another array.
Assigning directly would return a string to the new array not a 3D array.
foo = [] //3D array;
boo = foo //boo becomes a string
Any idea of how to do this?
Edit: this is the code
Background.js
function onRequest(request, sender, sendResponse) {
localStorage = request.mes; // mes is an array
};
chrome.extension.onMessage.addListener(onRequest);