UNPKG
compare-image-data
Version:
latest (1.0.1)
1.0.1
1.0.0
A small library to compare ImageData objects.
compare-image-data
/
src
/
utils
/
isSubsetOfArray.ts
12 lines
(9 loc)
•
252 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
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;