Filter
Exclude
Time range
-
Near
New blog out, check it out πŸ‘‡ πŸ”—logictech.hashnode.dev/javas… πŸ“Œ Topic: JavaScript Arrays 101 A Beginner-Friendly Guide to Understanding Arrays from Scratch @ChaiCodeHQ @Hiteshdotcom @piyushgarg_dev @nirudhuuu @yntpdotme @devwithjay #chaicode #array #arraymethods #webdevelopment
1
20
191
Most developers handle JavaScript arrays the same way. There’s a cleaner alternative worth knowing. These tips simplify the most common operations. πŸ‘‡ #JavaScript #WebDevelopment #CodingTips #Frontend #ArrayMethods
1
3
106
The reduce() function is underrated πŸ”₯ Most developers use map() and filter() comfortably. But reduce()? That's where the magic happens. What reduce() actually does: Takes an array and "reduces" it to a single value. But that single value can be ANYTHING - a number, object, array, or even another function. The truth? Once you understand reduce(), you realize it can replace multiple loops and make your code cleaner. It's not just a function. It's a mindset shift. πŸ’‘ Stop avoiding reduce(). Start mastering it. #JavaScript #WebDevelopment #Reduce #ArrayMethods #CleanCode #Programming
1
1
5
111
Master these JavaScript array methods once, and 80% of JS problems instantly become easier πŸ’‘πŸš€ These functions are the real backbone of clean, efficient, modern JavaScript. Follow for more @codecraftzoneofficial πŸ§‘β€πŸ’»βš‘ #javascript #js #webdevelopment #codingtips #arraymethods
3
4
62
map, filter, reduce No los ignores si quieres subir de nivel. #DevTips #ArrayMethods
3
58
1,789
Day 16 βœ… | Sigma 8 - @ShradhaKhapra_ Covered some core JavaScript topics today! πŸ”₯ πŸ“Œ String methods πŸ“Œ Arrays & Array methods πŸ“Œ Intro to Multidimensional Arrays πŸ“ŒNotes Dpp Also solved all the PPT questions βœ… #Sigma8 #ApnaCollege #JavaScript #ArrayMethods #WebDev #Coding
5
43
πŸš€Essential Array Methods in Salesforce Apex!πŸš€ Handling collections in Salesforce Apex? Knowing the right array methods can make your code efficient & scalable! πŸ“–Explore the full list here: πŸ‘‰ crsinfosolutions.com/salesfo… #Salesforce #Apex #ArrayMethods #SalesforceDev #Coding
1
4
6
24
JavaScript array methods πŸš€πŸ”₯ 1. Adding & Removing Elements push(item) β†’ Adds an item at the end of the array. pop() β†’ Removes the last item from the array. unshift(item) β†’ Adds an item at the beginning of the array. shift() β†’ Removes the first item from the array. ----------------------------------------------------- 2. Searching in an Array indexOf(item) β†’ Returns the index of the first occurrence of an item (or -1 if not found). lastIndexOf(item) β†’ Returns the index of the last occurrence of an item. includes(item) β†’ Returns true if the item exists in the array, otherwise false. find(callback) β†’ Returns the first matching element based on a condition. findIndex(callback) β†’ Returns the index of the first matching element based on a condition. ----------------------------------------------------- 3. Modifying or Transforming Arrays map(callback) β†’ Creates a new array by modifying each item. filter(callback) β†’ Creates a new array with only the items that match a condition. reduce(callback, initialValue) β†’ Reduces the array to a single value (e.g., sum of all numbers). forEach(callback) β†’ Runs a function for each item (but doesn’t create a new array). some(callback) β†’ Returns true if at least one item matches a condition. every(callback) β†’ Returns true if all items match a condition. ----------------------------------------------------- 4. Sorting & Reversing sort(compareFunction) β†’ Sorts the array (default is ascending, but can be customized). reverse() β†’ Reverses the order of the elements in the array. ----------------------------------------------------- 5. Extracting & Combining Arrays slice(start, end) β†’ Extracts a portion of an array (without modifying the original). splice(start, deleteCount, item1, item2, …) β†’ Changes the array by adding/removing elements. concat(array2, array3, …) β†’ Joins two or more arrays into a new array. flat(depth) β†’ Flattens nested arrays into a single array (default depth is 1). join(separator) β†’ Converts an array to a string, with elements separated by a given character. ----------------------------------------------------- 6. Converting & Checking Arrays toString() β†’ Converts an array to a string. Array.isArray(value) β†’ Checks if a value is an array (true or false). #JavaScript #JSDeveloper #LearnJavaScript #JavaScriptTutorial #Coding #JavaScriptArrays #ArrayMethods #JSArrayTips #CodingWithJS #JavaScriptTricks #WebDevelopment #coder #CodeNewbie #FrontendDeveloper #coding #ProgrammingTips #100DaysOfCode #react
25
7
39
2,876
πŸš€ JavaScript Array Methods & Their Explanations πŸ“Œ 1. push() Adds one or more elements to the end of an array and returns the new length. let arr = [1, 2]; arr.push(3); // [1, 2, 3] --------------------------------- πŸ”™ 2. pop() Removes the last element from an array and returns it. let arr = [1, 2, 3]; arr.pop(); // 3 (arr becomes [1, 2]) --------------------------------- πŸ” 3. unshift() Adds elements to the beginning of an array and returns the new length. let arr = [2, 3]; arr.unshift(1); // [1, 2, 3] --------------------------------- πŸ”½ 4. shift() Removes the first element from an array and returns it. let arr = [1, 2, 3]; arr.shift(); // 1 (arr becomes [2, 3]) --------------------------------- πŸ” 5. indexOf() Finds the first index of a specified element, or returns -1 if not found. let arr = [10, 20, 30, 40]; arr.indexOf(30); // 2 --------------------------------- πŸ”„ 6. reverse() Reverses the order of elements in place. let arr = [1, 2, 3]; arr.reverse(); // [3, 2, 1] --------------------------------- πŸ—οΈ 7. concat() Merges two or more arrays without modifying the original arrays. let arr1 = [1, 2]; let arr2 = [3, 4]; let result = arr1.concat(arr2); // [1, 2, 3, 4] --------------------------------- βœ‚οΈ 8. slice() Returns a shallow copy of a portion of an array. let arr = [10, 20, 30, 40]; arr.slice(1, 3); // [20, 30] --------------------------------- πŸ› οΈ 9. splice() Adds/removes elements from an array at a specific index. let arr = [1, 2, 3, 4]; arr.splice(1, 2, 99); // Removes 2 and 3, adds 99 β†’ [1, 99, 4] --------------------------------- 🎭 10. map() Creates a new array by applying a function to each element. let arr = [1, 2, 3]; let doubled = arr.map(x => x * 2); // [2, 4, 6] --------------------------------- 🎯 11. filter() Creates a new array with elements that pass a test. let arr = [10, 20, 30, 40]; let filtered = arr.filter(x => x > 20); // [30, 40] --------------------------------- πŸ”’ 12. reduce() Reduces the array to a single value by applying a function. let arr = [1, 2, 3, 4]; let sum = arr.reduce((acc, curr) => acc curr, 0); // 10 --------------------------------- πŸ”Ž 13. find() Returns the first element that passes a test. let arr = [5, 10, 15]; let found = arr.find(x => x > 6); // 10 --------------------------------- πŸ”’ 14. findIndex() Returns the index of the first element that matches a condition. let arr = [3, 6, 9]; arr.findIndex(x => x > 5); // 1 --------------------------------- βš– 15. every() Checks if all elements pass a test, returns true or false. let arr = [2, 4, 6]; arr.every(x => x % 2 === 0); // true --------------------------------- βœ… 16. some() Checks if at least one element passes a test. let arr = [1, 3, 5, 8]; arr.some(x => x % 2 === 0); // true --------------------------------- πŸ”€ 17. join() Joins array elements into a string using a separator. let arr = ['Hello', 'World']; arr.join(' '); // "Hello World" --------------------------------- πŸ”€ 18. sort() Sorts an array in place (default: lexicographical). let arr = [40, 100, 1, 5]; arr.sort((a, b) => a - b); // [1, 5, 40, 100] --------------------------------- πŸ”„ 19. forEach() Executes a function for each array element. let arr = [1, 2, 3]; arr.forEach(x => console.log(x * 2)); // 2, 4, 6 --------------------------------- πŸ” 20. flat() Flattens nested arrays into a single-level array. let arr = [1, [2, 3], [4, 5]]; arr.flat(); // [1, 2, 3, 4, 5] --------------------------------- #JavaScript #ArrayMethods #LearnJavaScript #WebDevelopment #JSArrays #coder #coding #FrontendDevelopment #fullstack #react #developer #JavaScriptTutorial #CodingForBeginners #JSForBeginners #JavaScriptTips #WebDevTips #CodeWithMe #tips #ai #ui #ux #designer #JSMapMethod #JSFilterMethod #JSReduceMethod #JSSliceMethod #JSArrayTricks
25
5
32
1,161
14 Nov 2024
1
3
27
13 Nov 2024
1
3
18
30 Oct 2024
Array Iteration in JavaScript: Using reduce, reduceRight, every, and some geekboots.com/javascript/arr… #javascript #webdesign #arrayiteration #ArrayMethods #JS
2
4
73
✨ Day 48: Today I explored JavaScript arrays πŸ” Learned searching, filtering, mapping, and more! Arrays are so versatile and powerful! Excited to implement these techniques! πŸš€ #JavaScript #FullStackDev #100DaysOfCode #WebDev #CodeLife #ArrayMethods
1
3
57
Day 47 of #100DaysOfNewTechnology: Today I learned about the push and pop methods in JavaScript! πŸ§‘β€πŸ’»πŸ”„ push adds elements to the end of an array, while pop removes the last element. #JavaScript #WebDev #ArrayMethods #TechLearning #FrontendDevelopment
1
2
36
πŸ“ JavaScript Array Methods πŸ§‘β€πŸ’» Mastering array methods is crucial for effective JavaScript coding! Here are some of the most useful methods to know: #JavaScript #ArrayMethods #WebDevelopment #Programming #Coding #100DaysOfCode #DevCommunity #LearnToCode
1
1
5
283
30 Jul 2024
1
2
18
19 Mar 2024
Learn how to effectively manage and manipulate arrays of data in a React project using array methods like map(), filter(), and reduce(). Check out this real project example by Anil and level up your coding skills! #React #JavaScript #ArrayMethods #Coding… ift.tt/8PM0TeH

2
19
Day 7 of #100DaysOfCode Revisiting JavaScript: Array Mastery! Deep dive into array methods: -Filter Method -Map Method -Reduce Method -Find Method -Sort Method -Chaining Array methods for efficient data manipulation #JavaScript #WebDev #ArrayMethods #buildinpublic
3
69