Tagged articles
25 articles
Page 1 of 1
JavaScript
JavaScript
Dec 24, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why traditional JavaScript for loops are often suboptimal and introduces more readable, functional, and powerful alternatives such as array methods, for...of, for...in, and the spread operator, while also outlining scenarios where the classic for loop still shines.

JavaScriptarray methodses6
0 likes · 7 min read
Beyond the Classic for Loop: Modern JavaScript Iteration Techniques
JavaScript
JavaScript
Nov 20, 2025 · Frontend Development

Why forEach Slows You Down: Faster JavaScript Loop Alternatives

This article examines the performance drawbacks and limitations of JavaScript's forEach method and presents faster alternatives such as classic for loops, for…of, functional methods like map, filter, reduce, and early‑exit methods like some and every.

JavaScriptLoopsarray methods
0 likes · 3 min read
Why forEach Slows You Down: Faster JavaScript Loop Alternatives
JavaScript
JavaScript
Oct 31, 2025 · Frontend Development

Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops

The article explains why Array.prototype.forEach is increasingly discouraged in modern JavaScript, especially when combined with async/await, and shows how replacing it with a for...of loop resolves asynchronous pitfalls, enables proper flow‑control statements, and improves code clarity.

/loopJavaScriptarray methods
0 likes · 5 min read
Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops
JavaScript
JavaScript
Oct 29, 2025 · Frontend Development

Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead

While the classic JavaScript for loop remains fundamental, modern ECMAScript features and array methods like forEach, map, filter, and newer constructs such as for…of and the spread operator offer more readable, functional, and often more efficient alternatives, each suited to different scenarios.

JavaScriptarray methodses6
0 likes · 7 min read
Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead
JavaScript
JavaScript
Sep 4, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why the traditional JavaScript for loop is often suboptimal and explores newer, more readable and functional iteration methods such as array helpers, for...of, for...in, and the spread operator, while also outlining scenarios where the classic for loop still shines.

JavaScriptarray methodses6
0 likes · 7 min read
Beyond the Classic for Loop: Modern JavaScript Iteration Techniques
JavaScript
JavaScript
Apr 26, 2025 · Frontend Development

Master JavaScript flatMap: Simplify Array Transformations and Boost Performance

The article explains JavaScript’s flatMap() method, detailing its combination of map() and flat() functionality, syntax, parameters, use‑cases such as flattening nested arrays, filtering and transforming elements, handling one‑to‑many relationships, performance benefits, caveats, and real‑world examples with code snippets.

JavaScriptarray methodsdata-processing
0 likes · 4 min read
Master JavaScript flatMap: Simplify Array Transformations and Boost Performance
JavaScript
JavaScript
Apr 20, 2025 · Frontend Development

Replace Nested Loops with Elegant JavaScript Array Methods

This article explains how to replace verbose nested for‑loops in JavaScript with functional array methods like flat, map, filter, flatMap, and reduce, improving code readability, maintainability, and often performance for handling multi‑dimensional arrays.

FlatJavaScriptarray methods
0 likes · 4 min read
Replace Nested Loops with Elegant JavaScript Array Methods
Sohu Tech Products
Sohu Tech Products
Mar 5, 2025 · Frontend Development

Why Modern JavaScript Developers Move Away from Traditional Loops and What to Use Instead

Modern JavaScript developers increasingly replace traditional for‑loops with expressive array methods, generators, and functional patterns because loops risk scope leakage, mutable state, and off‑by‑one errors, while still using classic loops only for performance‑critical or low‑level tasks, choosing the style that fits data size, team preferences, and project requirements.

GeneratorsJavaScriptLoops
0 likes · 8 min read
Why Modern JavaScript Developers Move Away from Traditional Loops and What to Use Instead
JavaScript
JavaScript
Feb 28, 2025 · Frontend Development

Why forEach Is Slower: Faster JavaScript Loop Alternatives You Should Use

While forEach is popular for its readability, it suffers from slower performance, inability to break early, lack of async support, and always returns undefined; this article examines its limitations and presents faster alternatives such as classic for loops, for…of, and functional methods like map, filter, reduce, some, and every.

JavaScriptarray methods
0 likes · 3 min read
Why forEach Is Slower: Faster JavaScript Loop Alternatives You Should Use
JavaScript
JavaScript
Feb 26, 2025 · Frontend Development

Master JavaScript Array Methods: From map to flatMap

This guide explains how JavaScript’s built‑in array methods—such as map, filter, reduce, forEach, find, some, every, includes, flat, flatMap, findIndex, and slice—can replace nested loops, improve readability, and enable powerful method chaining for concise, efficient data manipulation.

JavaScriptMAParray methods
0 likes · 7 min read
Master JavaScript Array Methods: From map to flatMap
JavaScript
JavaScript
Dec 25, 2024 · Frontend Development

7 Essential JavaScript Array Methods Every Developer Should Master

This guide explores seven powerful JavaScript array methods—map, filter, reduce, forEach, find, some, and every—detailing their syntax, practical examples, performance tips, and how to combine them for efficient data manipulation in modern web development.

JavaScriptMAParray methods
0 likes · 9 min read
7 Essential JavaScript Array Methods Every Developer Should Master
Sohu Tech Products
Sohu Tech Products
Sep 28, 2022 · Fundamentals

New ECMAScript 2023 Array Proposals: Non‑Destructive Methods, Grouping, Find‑From‑Last, and fromAsync

The article explains the upcoming ECMAScript 2023 proposals—including non‑destructive array methods (toReversed, toSorted, toSpliced, with), array grouping (group, groupToMap), reverse‑search methods (findLast, findLastIndex), and the asynchronous constructor Array.fromAsync—detailing their stages, usage examples, polyfills, and type signatures for modern JavaScript development.

ECMAScriptJavaScript proposalsPolyfill
0 likes · 14 min read
New ECMAScript 2023 Array Proposals: Non‑Destructive Methods, Grouping, Find‑From‑Last, and fromAsync
php Courses
php Courses
Apr 14, 2022 · Frontend Development

Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants

The article presents a series of JavaScript ES6 code‑review critiques, explaining why older ES5 patterns are problematic and demonstrating modern ES6 alternatives such as destructuring, spread operators, template literals, optional chaining, async/await, and array methods with clear code examples.

Code reviewDestructuringJavaScript
0 likes · 8 min read
Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants
TAL Education Technology
TAL Education Technology
Feb 24, 2022 · Frontend Development

Optimizing JavaScript Code with ES6 Features: Destructuring, Array Merging, Includes, Optional Chaining, and Flattening

This article demonstrates how to modernize and simplify JavaScript code by applying ES6 techniques such as object destructuring, Set‑based array deduplication, includes() for condition checks, optional chaining for safe property access, and array flattening methods, improving readability and maintainability.

Code OptimizationDestructuringJavaScript
0 likes · 8 min read
Optimizing JavaScript Code with ES6 Features: Destructuring, Array Merging, Includes, Optional Chaining, and Flattening
Alibaba Terminal Technology
Alibaba Terminal Technology
Dec 28, 2021 · Fundamentals

What’s New in TC39’s December Meeting? Intl.Segmenter V2, Array.groupBy, RegExp Enhancements

The December TC39 meeting updated several proposals—including moving Intl.Segmenter to Stage 1 as V2, adding new timeZoneName values, expanding Intl.DisplayNames, introducing Array.prototype.groupBy and Array.fromAsync, and refining RegExp modifiers and buffer boundaries—while outlining the criteria for advancing proposals through the stages.

ECMAScript proposalsJavaScriptRegExp
0 likes · 18 min read
What’s New in TC39’s December Meeting? Intl.Segmenter V2, Array.groupBy, RegExp Enhancements
Open Source Tech Hub
Open Source Tech Hub
Jul 9, 2020 · Frontend Development

Master JavaScript & jQuery Looping: From for() to $.each() Explained

This guide clarifies the differences between native JavaScript and jQuery iteration functions, shows how to convert between DOM and jQuery objects, and provides concrete code examples for each looping method—including for, forEach, every, some, map, filter, for‑in, each, $.map, $.grep, $.inArray and $.filter—so developers can choose the right tool without errors.

/loopDOMJavaScript
0 likes · 7 min read
Master JavaScript & jQuery Looping: From for() to $.each() Explained
AutoHome Frontend
AutoHome Frontend
Jun 24, 2019 · Frontend Development

Unlock the Power of JavaScript’s reduce: 5 Creative Uses Beyond Simple Summing

This tutorial explores why the .reduce() method feels intimidating, demonstrates its basic usage with addition and multiplication, and then showcases five unconventional applications—including converting arrays to objects, flattening nested arrays, performing dual calculations in a single pass, merging map and filter, and sequencing asynchronous calls—while providing clear code examples and performance considerations.

JavaScriptWeb Developmentarray methods
0 likes · 14 min read
Unlock the Power of JavaScript’s reduce: 5 Creative Uses Beyond Simple Summing
UC Tech Team
UC Tech Team
Nov 13, 2018 · Fundamentals

Understanding Higher-Order Functions in JavaScript

This article explains what higher‑order functions are, why JavaScript supports functional programming, demonstrates built‑in methods like map, filter and reduce with code examples, and shows how to create your own higher‑order function for clearer, more concise code.

Higher-Order FunctionsJavaScriptMAP
0 likes · 8 min read
Understanding Higher-Order Functions in JavaScript
Node Underground
Node Underground
Oct 12, 2018 · Frontend Development

Why map and filter Beat forEach in JavaScript: Cleaner, Testable Code

Using map and filter instead of forEach when creating new arrays in JavaScript offers semantic separation, easier testing, better readability, and async compatibility, making code more functional and maintainable while avoiding side‑effects and unnecessary complexity.

MAParray methodsfilter
0 likes · 6 min read
Why map and filter Beat forEach in JavaScript: Cleaner, Testable Code
UC Tech Team
UC Tech Team
Sep 24, 2018 · Frontend Development

10 Essential JavaScript Array Methods You Should Know

This article introduces ten indispensable JavaScript array methods—including forEach, includes, filter, map, reduce, some, every, sort, Array.from, and Array.of—explaining their purpose, usage, and providing visual examples to help developers efficiently manipulate arrays in web development.

JavaScriptarray methodsfrontend development
0 likes · 4 min read
10 Essential JavaScript Array Methods You Should Know
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 9, 2017 · Frontend Development

Boost Mini Program Development with Essential ES6 Features

This article explains how key ES6 features—arrow functions, array methods, destructuring, enhanced object literals, classes, and block‑scoped variables—can streamline WeChat Mini Program development, improve code readability, and increase development efficiency.

Arrow FunctionsJavaScriptWeChat Mini Program
0 likes · 8 min read
Boost Mini Program Development with Essential ES6 Features