Skip to content

Commit cfc8f2b

Browse files
SunJieMingSunJieMing
authored andcommitted
Fixed linting errors
1 parent ea6c357 commit cfc8f2b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/callbacks.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1+
/* eslint-disable */
2+
13
/* For portion of the assignment your job is to write functions
24
* so that each function invocation below works. You're working backwards.
35
*
46
* There are no tests for this file.
5-
*
7+
*
68
* Example:
79
*
810
* greeting('Hey guys', (message) => {
911
* console.log(message);
1012
* });
1113
*
1214
* You would then define the greeting function to make the invocation work.
13-
*
15+
*
1416
*
1517
* const greeting = (str, cb) => {
1618
* cb(str);
1719
* };
1820
*
19-
*/
20-
21+
*/
2122

2223
// Write a function called firstItem that passes the first item of the given array to the callback function
2324
// code here
@@ -77,4 +78,6 @@ removeDuplicates(foods, (uniqueFoods) => {
7778

7879
forEach(foods, (value, index) => {
7980
console.log(`${value} is at index ${index}.`);
80-
});
81+
});
82+
83+
/* eslint-enable */

0 commit comments

Comments
 (0)