Why this is not working? I've got this error TypeError: head.slice is not a function
// head is [4, 2, 1, 6] var insertionSortList = function(head) { let headArr = head.slice };