array-trickle

data throttle

Usage no npm install needed!

<script type="module">
  import arrayTrickle from 'https://cdn.skypack.dev/array-trickle';
</script>

README

trickle

Build Status

You: My array is too big! I want to unveil it a bit at a time.

Me: At what rate?

You: 50 rows / 1000 ms.

Me:

import trickle from 'array-trickle'

trickle({
  rows: 50,
  ms: 1000,
  onData: newRows => console.log(newRows),
})