mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
16 lines
254 B
JavaScript
16 lines
254 B
JavaScript
class Foo {
|
|
#client
|
|
|
|
constructor(props) {
|
|
let x;
|
|
;([x, ...this.#client] = props);
|
|
}
|
|
|
|
getClient() {
|
|
return this.#client;
|
|
}
|
|
}
|
|
|
|
const foo = new Foo(['foo', 'bar', 'baz', 'quu']);
|
|
expect(foo.getClient()).toEqual(['bar', 'baz', 'quu']);
|