Global Objects

.shift()

2025-06-05

.shift() 方法总数组中删除第一个元素,并返回值,如果为空则返回 undefined

语法

[[indexOf]].

shift()