has-subarrays
Quickly Determine if an Array contains Subarrays
install
npm install has-subarrays
usage
const hasSubArrays = ; const numbers_one_to_ten = 12345678910; const result = ;// result is true
setting a threshold
You can specify a threshold, the number of unique matches after which it will return true. If you don't specify a threshold, it will assume all subarrays must be found.
const result = ;// result is true