Iterable copy function for JavaScript. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {tee} from '@iterable-iterator/tee';
tee('ABC', 2); // [ A B C , A B C ]