Bump to v4.14.2.

This commit is contained in:
John-David Dalton
2016-08-07 21:21:03 -07:00
parent 623a72a129
commit 3d3ce0979f
74 changed files with 421 additions and 440 deletions

View File

@@ -1,4 +1,4 @@
define(['./drop'], function(drop) {
define(['./_baseSlice'], function(baseSlice) {
/**
* Gets all but the first element of `array`.
@@ -15,7 +15,8 @@ define(['./drop'], function(drop) {
* // => [2, 3]
*/
function tail(array) {
return drop(array, 1);
var length = array ? array.length : 0;
return length ? baseSlice(array, 1, length) : [];
}
return tail;