Created
October 3, 2021 11:33
-
-
Save MananTank/d9f1144ccb5565c1d2ed4b5909faccdf to your computer and use it in GitHub Desktop.
Revisions
-
MananTank created this gist
Oct 3, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ const map = new Map() for (let i=0; i<array.length; i++) { map.set(array[i], i) }