ok trovato soluzione con Array.prototype