This file contains 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 characters
const linearArray = []; | |
const testArray = { | |
// The array that will hold the values | |
array: [], | |
// The inverted index | |
index: {}, | |
// The push function | |
push: function (value) { | |
// Push the value to the array |