Bump to v4.11.0.

This commit is contained in:
John-David Dalton
2016-04-12 22:22:25 -07:00
parent f10bb8b80b
commit 764eccfdc0
25 changed files with 159 additions and 82 deletions

View File

@@ -17,7 +17,7 @@
* // => undefined
*/
function head(array) {
return array ? array[0] : undefined;
return (array && array.length) ? array[0] : undefined;
}
export default head;