get completed ()
Is "get" som es6 thing?
In a nutshell: it is used for computed properties, which compute their value on 'get' operations instead of storing them.
function Foo() {
var _bar = 42;
return {
get bar() {
return _bar;
}
}
}
var foo = Foo();
foo.bar
/*
42
*/
However the fact that you can transparently replace a simple property by a computed one (e.g. for backwards compatibility or to trigger side effects in observables) does make explicit, Java-style, getters and setters less useful.