Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function nextCycleItem(cycleIterator) { return take(1, cycleIterator)[0] }
A JavaScript port of Python's awesome itertools standard library