function prepend(arr, item) { let rs = JSON.parse(JSON.stringify(arr)) rs.splice(0,0,item) return rs }