UNPKG

compare-image-data

Version:

A small library to compare ImageData objects.

12 lines (9 loc) 252 B
import { TypedArray } from "../types"; import indexOfSubset from "./indexOfSubset"; function isSubsetOfArray<T>( arr: TypedArray<T>, subset: TypedArray<T> ): boolean { return indexOfSubset(arr, subset) !== -1; } export default isSubsetOfArray;