JavaScript slice method 5

function convertToArray() {
  return Array.prototype.slice.call(arguments)
}

//This will return array of numbers
let list1 = convertToArray(1, 2, 3) 
//Result:
//(3) [1, 2, 3]

//This will return an array of letters
let list2 = convertToArray('A', 'B', 'C')
//Result:
//(3) ['A', 'B', 'C']