<commit_before>const includes = require('.')
const t = require('ava')

function* nums() {
  yield 1
  yield 2
  yield 3
}

t(t => {
  t.truthy(includes(nums(), 1))
  t.truthy(includes(nums(), 2))
  t.truthy(includes(nums(), 3))
  t.falsy(includes(nums(), 4))
  t.falsy(includes(nums(), undefined))
  t.truthy(includes(new Set([1, 2]), 1))
})
<commit_msg>includes: add test for array<commit_after>const includes = require('.')
const test = require('ava')

function* nums() {
  yield 1
  yield 2
  yield 3
}

test(t => {
  t.truthy(includes(nums(), 1))
  t.truthy(includes(nums(), 2))
  t.truthy(includes(nums(), 3))
  t.falsy(includes(nums(), 4))
  t.falsy(includes(nums(), undefined))
  t.truthy(includes(new Set([1, 2]), 1))
  t.truthy(includes(new Uint32Array([1, 2, 3]), 3))
})

{'fraction_non_alphanumeric': 0.2112676056338028, 'fraction_numerical': 0.03329065300896287, 'mean_word_length': 4.625899280575539, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6253001', 'n_tokens_mistral': 348, 'n_tokens_neox': 327, 'n_words': 67}