@skt-t1-byungi/array-includes

includes() for old browser, in typescript.

Usage no npm install needed!

<script type="module">
  import sktT1ByungiArrayIncludes from 'https://cdn.skypack.dev/@skt-t1-byungi/array-includes';
</script>

README

@skt-t1-byungi/array-includes

includes() for old browser, in typescript.

Example

includes([1, 2, 3], 2)
// => true

includes([1, 2, 3], 4)
// => false

includes(array, search, from = 0)

array

Target array.

search

The element to search for.

from

The position in this array at which to begin.

License

MIT