Skip to content
我的前端知识学习笔记
Main Navigation
首页
Web 开发基础知识
JavaScript 函数式编程
数据结构与算法
小记
github
Appearance
github
Menu
Return to top
On this page
Table of Contents for current page
Code
Tail 函数
#
给定一个数组,返回所有除第一个元素之外的剩余元素。
Code
#
function
tail
(
array
)
{
return
array
.
slice
(
1
)
;
}