Skip to content

解构赋值

js
let args = Array.prototype.slice.call(arguments)
let args = [].slice.call(arguments)

// ES2015
const args = Array.from(arguments)
const args = [...arguments]
let args = Array.prototype.slice.call(arguments)
let args = [].slice.call(arguments)

// ES2015
const args = Array.from(arguments)
const args = [...arguments]

Released under the MIT License.