Implement these array methods
forEach() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/forEach.js
findIndex() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/findIndex.js
find() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/findMethod.js
map () https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/myMap.js
filter() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/myFilter.js
every() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/checkEvery.js
some() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/checkSome.js
reduce() not solved slice() not solved splice() not solved
Task 1 Concatenate the two arrays const arr1 = [1, 2, 3, 4]; const arr2 = [5, 6, 7, 8, 9]; https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/1.concat.js
Task 2 How to take arguments in sum function? https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/2.argument.js
Task 3 How to pass arguments in sum function? https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/3.destructuring.js
Task 4 Swapping Values using the Destructuring Assignment. let a = 3; let b = 6; console.log(a); //6 console.log(b); //3 https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/4.swapping.js
Task 6 Given an array, return a new array that only includes the numbers.
const arr = [1, 2, 'a', true, {}, undefined, 55, false, 'hi', null, 166, NaN];
// [1, 2, 55, 166];
https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/6.FilterMethod.js
- slice() implement
.slice()
please click on link to see solution
- splice() implement
.splice()