mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Remove semicolons.
This commit is contained in:
8
head.js
8
head.js
@@ -9,14 +9,14 @@
|
||||
* @see last
|
||||
* @example
|
||||
*
|
||||
* head([1, 2, 3]);
|
||||
* head([1, 2, 3])
|
||||
* // => 1
|
||||
*
|
||||
* head([]);
|
||||
* head([])
|
||||
* // => undefined
|
||||
*/
|
||||
function head(array) {
|
||||
return (array && array.length) ? array[0] : undefined;
|
||||
return (array && array.length) ? array[0] : undefined
|
||||
}
|
||||
|
||||
export default head;
|
||||
export default head
|
||||
|
||||
Reference in New Issue
Block a user