// const numbers = [1, 2, 3, 4, 5];
      const newArray = originalArray.map((element) => element);
      
      Javascript language logo

      Map array

      My JavaScript recipes

      Shortcut: array.map

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.