Skip to content

Commit d9c965f

Browse files
committed
finished firstItem
1 parent c268e18 commit d9c965f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/callbacks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const firstItem = (arr, cb) => {
44
// firstItem passes the first item of the given array to the callback function.
5+
cb(arr[0]);
56
};
67

78
const getLength = (arr, cb) => {

0 commit comments

Comments
 (0)