import * as utils from '../utils' export function toArray(source: Iterable): Array { utils.throws.ThrowIfNull('source', source) return [...source] }