@skt-t1-byungi/array-for-each

forEach() for old browser, in typescript.

Usage no npm install needed!

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

README

@skt-t1-byungi/array-for-each

forEach() for old browser, in typescript.

Example

forEach([1, 2], x => console.log('value is ' + x))

// value is 1
// value is 2

forEach(array, callback, [thisArg])

array

Target array.

callback

Function to execute for each element.

thisArg

Value to use as this when executing callback.

License

MIT