(data)
| 1948 | // cause the data to change while iterating by using a key function, but please |
| 1949 | // don’t; we’d rather avoid a gratuitous copy.) |
| 1950 | function arraylike(data) { |
| 1951 | return typeof data === "object" && "length" in data |
| 1952 | ? data // Array, TypedArray, NodeList, array-like |
| 1953 | : Array.from(data); // Map, Set, iterable, string, or anything else |
| 1954 | } |
| 1955 | |
| 1956 | function selection_exit() { |
| 1957 | return new Selection$1(this._exit || this._groups.map(sparse), this._parents); |