zrwusa / data-structure-typed

Javascript Data Structure & TypeScript Data Structure. Heap, Binary Tree, Red Black Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree, AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack.
https://data-structure-typed-docs.vercel.app
MIT License
114 stars 8 forks source link

Parameter design in forEach, *[Symbol.iterator], filter, map, reduce #49

Closed zrwusa closed 9 months ago

zrwusa commented 9 months ago

Describe the solution you'd like Consider whether the parameter design in forEach, *[Symbol.iterator], filter, map, reduce should follow the ES6 standard, or use an entry array as a key-value pair.

zrwusa commented 9 months ago

It has been decided that the callback functions for forEach, filter, map, reduce will follow the ES6 standard, with the first argument as value and the second as key. This will be fully implemented in version 1.48.2.