/*The 'arguments' of a function can be accessed with the arguments keyword. */
function sortedArgs() {
console.log(Array.isArray(arguments));
//false
// to create an array from the arguments
// use the Array.from() prototype method
// `arguments` is a pseudo-array
let argList =Array.from(arguments)
console.log(Array.isArray(argList))
//true
return argList.sort()
}
console.log(sortedArgs(3, 1, 2)
//False
//True
//[ 1, 2, 3 ] *credit to <enki/>