Skip to content

Instantly share code, notes, and snippets.

View Cadienvan's full-sized avatar

Michael Di Prisco Cadienvan

View GitHub Profile
@Cadienvan
Cadienvan / index.js
Last active February 11, 2023 10:32
Tests about inverted index performances on JS arrays
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