* Returns the visible keys as an array after collapsing the stack. * @returns {K[]} array of keys
()
| 157 | * @returns {K[]} array of keys |
| 158 | */ |
| 159 | asArray() { |
| 160 | this._compress(); |
| 161 | return [...this.map.keys()]; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Returns the visible keys as a `Set` after collapsing the stack. |