mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Clean up arrayEquals
This commit is contained in:
parent
07dd6adeff
commit
4dc72ae0e0
2 changed files with 0 additions and 4 deletions
|
|
@ -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"]);
|
||||
|
|
|
|||
|
|
@ -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[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue