Skip to content

Commit

Permalink
fix typo in predictive prefetching example:
Browse files Browse the repository at this point in the history
  • Loading branch information
jenperson committed Feb 13, 2023
1 parent 6d842be commit 1f6209d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -42,11 +42,11 @@ const predict = async (path, userId) => {
session_index: sessionIndex,
});
const values = result.dataSync();
const orders = sortWithIndeces(values).slice(0, 5);
const orders = sortWithIndices(values).slice(0, 5);
return orders;
};

const sortWithIndeces = (toSort) => {
const sortWithIndices = (toSort) => {
const sorted = [];
for (var i = 0; i < toSort.length; i++) {
sorted[i] = [toSort[i], pages[i]];
Expand Down

0 comments on commit 1f6209d

Please sign in to comment.