Clean up arrayEquals

This commit is contained in:
Jordan Eldredge 2019-04-15 09:32:20 -07:00
parent 07dd6adeff
commit 4dc72ae0e0
2 changed files with 0 additions and 4 deletions

View file

@ -18,7 +18,6 @@ import {
import { TOGGLE_TIME_MODE, TOGGLE_LLAMA_MODE } from "./actionTypes";
import { arraysAreEqual } from "./utils";
import { Dispatch } from "./types";
const IGNORE_EVENTS_FROM_TAGS = new Set(["input", "textarea", "select"]);

View file

@ -180,9 +180,6 @@ export function segment<V>(
return newValues[percentToIndex(ratio, newValues.length)];
}
export const arraysAreEqual = (a: any[], b: any[]): boolean =>
a.length === b.length && a.every((value, i) => value === b[i]);
// https://bost.ocks.org/mike/shuffle/
// Shuffle an array in O(n)
export function shuffle<T>(array: T[]): T[] {