underscore.js _reset[Array]
2012-04-15 22:36
435 查看
Returns the rest of the elements in an array. Pass an index to return the values of the array from that index onward
返回数组中的元素的其余部分。通过索引返回数组中的值,从该指数开始. 别名tail
源码:
返回数组中的元素的其余部分。通过索引返回数组中的值,从该指数开始. 别名tail
_.rest([5, 4, 3, 2, 1]); => [4, 3, 2, 1]
源码:
_.rest = _.tail = function(array, index, guard) { return slice.call(array, (index == null) || guard ? 1 : index); };
相关文章推荐
- underscore.js _.initial[Array]
- underscore.js _last[Array]
- underscore.js _.flatten[Array]
- underscore.js _without [Array]
- underscore.js _.union[Array]
- underscore.js _.intersect[Array]
- underscore.js _.difference[Array]
- underscore.js _uniq[Array]
- underscore.js _.zip[Array]
- underscore.js _indexOf[Array]
- underscore.js _.lastIndexOf[Array]
- underscore.js _range[Array]
- underscore.js _.first[Array]
- underscore.js学习-一
- underscore.js _.isEqual[Object]
- underscore.js _.isNaN[Object]
- underscore.js 409 -- 526行
- 一个必用的javascript框架:underscore.js - wine的思考 - ITeye技术网站
- underscore.js学习笔记
- Underscore.string.js Version (2.0.0) 中文文档