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(['./dropRight'], function(dropRight) {
define(['./_baseSlice'], function(baseSlice) {
/**
* Gets all but the last element of `array`.
@@ -15,7 +15,8 @@ define(['./dropRight'], function(dropRight) {
* // => [1, 2]
*/
function initial(array) {
return dropRight(array, 1);
var length = array ? array.length : 0;
return length ? baseSlice(array, 0, -1) : [];
}
return initial;