aureooms/js-tape

View on GitHub
src/fromIterable.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import fromIterator from './fromIterator.js';

/**
 * Converts an iterable to a tape.
 *
 * @function
 * @param {Iterable} iterable - The iterable to convert.
 * @returns {Tape} The converted tape.
 */
export default (iterable) => fromIterator(iterable[Symbol.iterator]());