Skip to content

Commit f2d8228

Browse files
committed
Add core files
1 parent b1859d9 commit f2d8228

File tree

4 files changed

+124
-0
lines changed

4 files changed

+124
-0
lines changed

filter/core.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
function onlyEven (array) {
2+
// your code here
3+
};
4+
5+
function onlyOneWord (array) {
6+
// your code here
7+
};
8+
9+
function positiveRowsOnly (array) {
10+
// your code here
11+
};
12+
13+
function allSameVowels (array) {
14+
// your code here
15+
};
16+
17+
module.exports = {
18+
onlyEven: onlyEven,
19+
onlyOneWord: onlyOneWord,
20+
positiveRowsOnly: positiveRowsOnly,
21+
allSameVowels: allSameVowels
22+
};

map/core.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
function multiplyBy10 (array) {
2+
// your code here
3+
};
4+
5+
function shiftRight (array) {
6+
// your code here
7+
};
8+
9+
function onlyVowels (array) {
10+
// your code here
11+
};
12+
13+
function doubleMatrix (array) {
14+
// your code here
15+
};
16+
17+
module.exports = {
18+
multiplyBy10: multiplyBy10,
19+
shiftRight: shiftRight,
20+
onlyVowels: onlyVowels,
21+
doubleMatrix: doubleMatrix
22+
};

reduce/core.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
function sum (array) {
2+
// your code here
3+
};
4+
5+
function productAll (array) {
6+
// your code here
7+
};
8+
9+
function objectify (array) {
10+
// your code here
11+
};
12+
13+
function luckyNumbers (array) {
14+
// your code here
15+
};
16+
17+
module.exports = {
18+
sum: sum,
19+
productAll: productAll,
20+
objectify: objectify,
21+
luckyNumbers: luckyNumbers
22+
};

zoo/core.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
function entryCalculator (entrants) {
2+
// your code here
3+
};
4+
5+
function schedule (dayName) {
6+
// your code here
7+
};
8+
9+
function animalCount (species) {
10+
// your code here
11+
};
12+
13+
function animalMap (options) {
14+
// your code here
15+
};
16+
17+
function animalPopularity (rating) {
18+
// your code here
19+
};
20+
21+
function animalsByIds (ids) {
22+
// your code here
23+
};
24+
25+
function animalByName (animalName) {
26+
// your code here
27+
};
28+
29+
function employeesByIds (ids) {
30+
// your code here
31+
};
32+
33+
function employeeByName (employeeName) {
34+
// your code here
35+
};
36+
37+
function managersForEmployee (idOrName) {
38+
// your code here
39+
};
40+
41+
function employeeCoverage (idOrName) {
42+
// your code here
43+
};
44+
45+
46+
module.exports = {
47+
entryCalculator: entryCalculator,
48+
schedule: schedule,
49+
animalCount: animalCount,
50+
animalMap: animalMap,
51+
animalPopularity: animalPopularity,
52+
animalsByIds: animalsByIds,
53+
animalByName: animalByName,
54+
employeesByIds: employeesByIds,
55+
employeeByName: employeeByName,
56+
managersForEmployee: managersForEmployee,
57+
employeeCoverage: employeeCoverage
58+
}

0 commit comments

Comments
 (0)