Convert iterable object to Array in JavaScript

[...iterable_object]

Alternative

Array.from(iterable_object)