Bump to v4.14.2.

This commit is contained in:
John-David Dalton
2016-08-07 21:23:34 -07:00
parent 6d4f76888f
commit cbf5cb1162
74 changed files with 233 additions and 256 deletions

View File

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