ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Array find and findIndex Methods in JavaScript | JavaScript Array Methods | Beginners tutorial

Автор: Code Explained

Загружено: 2022-09-02

Просмотров: 1455

Описание: 🎁 Join my channel to get access to perks:
   / @codeexplained  

🧡 Hello All JavaScript Lovers Outhere!

Today you're going to learn about the Array Object In JavaScript.

This tutorial is a series of videos, in each video we will discuss a method (or more) of the Array Object in JavaScript.

In today's video, you're going to learn about the find and findIndex methods.

------------------------------------------------ find ---------------------------------------------------------------------------------------
The find() method returns the value of the first element that passes a test.
The find() method executes a function for each array element.
The find() method returns undefined if no elements are found.
The find() method does not execute the function for empty elements.
The find() method does not change the original array.

🟢🟠 The Array.find().
🔷 Syntax :
// Callback function
find(callbackFn)
find(callbackFn, thisArg)

// Inline callback function
find(function(element) { /* … */ })
find(function(element, index) { /* … */ })
find(function(element, index, array){ /* … */ })
find(function(element, index, array) { /* … */ }, thisArg)


🔹callbackFn : Function to execute on each element.
The function is called with the following arguments:

🔹element : The current element being processed in the array.
🔹index : The index of element in the array.
🔹array : The array forEach() was called upon.
🔹thisArg (Optional) : Value to use as this when executing callbackFn.

------------------------------------------------ findIndex ---------------------------------------------------------------------------------------
The findIndex() method executes a function for each array element.
The findIndex() method returns the index (position) of the first element that passes a test.
The findIndex() method returns -1 if no match is found.
The findIndex() method does not execute the function for empty array elements.
The findIndex() method does not change the original array.

🟢🟠 The Array.findIndex().
🔷 Syntax :
// Callback function
findIndex(callbackFn)
findIndex(callbackFn, thisArg)

// Inline callback function
findIndex(function(element) { /* … */ })
findIndex(function(element, index) { /* … */ })
findIndex(function(element, index, array){ /* … */ })
findIndex(function(element, index, array) { /* … */ }, thisArg)


🔹callbackFn : Function to execute on each element.
The function is called with the following arguments:

🔹element : The current element being processed in the array.
🔹index : The index of element in the array.
🔹array : The array forEach() was called upon.
🔹thisArg (Optional) : Value to use as this when executing callbackFn.


🌍 Social Media Links.
◾ Facebook :   / code.explained.official  
◾ Twitter :   / code_explained  
◾ Instagram :   / code.explained.official  
◾ GitHub : https://github.com/CodeExplainedRepo

💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExpl...

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Array find and findIndex Methods in JavaScript | JavaScript Array Methods | Beginners tutorial

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Array some Method in JavaScript | JavaScript Array Methods | Beginners tutorial

Array some Method in JavaScript | JavaScript Array Methods | Beginners tutorial

All 33 JavaScript Array Methods In One Video

All 33 JavaScript Array Methods In One Video

Array map Method in JavaScript | JavaScript Array Methods | Beginners tutorial

Array map Method in JavaScript | JavaScript Array Methods | Beginners tutorial

JavaScript Array Mastery: Tips, Tricks & Best Practices

JavaScript Array Mastery: Tips, Tricks & Best Practices

TypeScript ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Вся теория + практика

TypeScript ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Вся теория + практика

Метод фильтрации массива в JavaScript | Методы массивов JavaScript | Учебник для начинающих

Метод фильтрации массива в JavaScript | Методы массивов JavaScript | Учебник для начинающих

16.9: Array Functions: sort() - Topics of JavaScript/ES6

16.9: Array Functions: sort() - Topics of JavaScript/ES6

reduce Method | JavaScript Array Methods | Beginners tutorial

reduce Method | JavaScript Array Methods | Beginners tutorial

ООП На Простых Примерах | Объектно-Ориентированное Программирование

ООП На Простых Примерах | Объектно-Ориентированное Программирование

All 34 String Methods In JavaScript In ONE VIDEO

All 34 String Methods In JavaScript In ONE VIDEO

Custom Array Sorts in JavaScript

Custom Array Sorts in JavaScript

Array Iteration: 8 Methods - map, filter, reduce, some, every, find, findIndex, forEach

Array Iteration: 8 Methods - map, filter, reduce, some, every, find, findIndex, forEach

JavaScript Array Reduce

JavaScript Array Reduce

Array Reduce Explained With Examples - JavaScript Tutorial

Array Reduce Explained With Examples - JavaScript Tutorial

Learn DOM Manipulation In 18 Minutes

Learn DOM Manipulation In 18 Minutes

Array every Method in JavaScript | JavaScript Array Methods | Beginners tutorial

Array every Method in JavaScript | JavaScript Array Methods | Beginners tutorial

Array forEach Method in JavaScript | JavaScript Array Methods | Beginners tutorial

Array forEach Method in JavaScript | JavaScript Array Methods | Beginners tutorial

КАК НЕЛЬЗЯ ХРАНИТЬ ПАРОЛИ (и как нужно) за 11 минут

КАК НЕЛЬЗЯ ХРАНИТЬ ПАРОЛИ (и как нужно) за 11 минут

JavaScript Array Sort Method Practice in 5 Minutes

JavaScript Array Sort Method Practice in 5 Minutes

BODYBUILDERS VS CLEANER  | Anatoly GYM PRANK #56

BODYBUILDERS VS CLEANER | Anatoly GYM PRANK #56

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]