Skip to content

Commit bc5e89a

Browse files
committed
implement createLookup() function
1 parent c68ec3e commit bc5e89a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎Sprint-2/implement/lookup.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
function createLookup() {
2-
// implementation here
1+
function createLookup(entries) {
2+
let obj = Object.fromEntries(entries);
3+
return obj;
34
}
45

5-
module.exports = createLookup;
6+
module.exports = createLookup;

0 commit comments

Comments
 (0)