Skip to content

Commit 54ad8ae

Browse files
committed
Started project 4
1 parent a09f1bb commit 54ad8ae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/project-4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const getFirstItem = (collection, cb) => {
22
// invoke the callback function and pass the first item from the collection in as an argument
3+
cb(collection[0]);
34
};
45

56
const getLength = (collection, cb) => {

0 commit comments

Comments
 (0)