About 8,210,000 results
Open links in new tab
  1. Map - JavaScript | MDN - MDN Web Docs

    Dec 8, 2025 · The Map object holds key-value pairs and remembers the original insertion order of the keys. Any value (both objects and primitive values) may be used as either a key or a value.

  2. JavaScript Array map () Method - W3Schools

    Description map() creates a new array from calling a function for every array element. map() does not execute the function for empty elements. map() does not change the original array.

  3. Map in JS - GeeksforGeeks

    Sep 23, 2025 · A JavaScript Map holds key-value pairs and similar to Hash Map or Dictionary in other languages. Preserves the original insertion order. Supports any type, including objects …

  4. JavaScript Array map () Method

    This tutorial shows you how to use the JavaScript Array map () method to transform elements in an array based on a provided function.

  5. JavaScript Map Method – Syntax and Code Examples

    Feb 15, 2024 · JavaScript's map method, introduced in ECMAScript 5, is a fundamental tool for array manipulation and transformation. This method is versatile and simple, and has become a …

  6. How to map key/value pairs of a "map" in JavaScript?

    Feb 12, 2019 · If you have a Map object, use Array.from(map) to get the entries of the map and use the second parameter of Array.from to go over each entry and create the desired string

  7. Map and Set - The Modern JavaScript Tutorial

    Nov 14, 2022 · In the begining of this article, you say that the difference between an object and a map is that the map can takes any kind of data as a key. So, the objects transform the value …

  8. Map - JavaScript | MDN - devdoc.net

    Jun 20, 2017 · A Map object iterates its elements in insertion order — a for...of loop returns an array of [key, value] for each iteration. It should be noted that a Map which is a map of an …

  9. How to Use .map () in JavaScript – Iterate and Transform Arrays …

    Nov 6, 2025 · Learn how to use the .map () method in JavaScript to iterate over arrays and return transformed results. Includes syntax, examples, and best practices.

  10. Javascript Map Object - Javascript Cheatsheet

    A Map is a built in object that holds key-value pairs. It can hold a key of any data type unlike in plain objects. It maintains the insertion order and provides helpers to manage key-value pairs.