I found this piece of code that I don't fully understand. To be precise, I'm talking about those function arguments:
function defaultPort({ port=123, user='test' }: Object = {}) {
}
I thought it was a different kind of deconstructing, but apparently it's not. Also, I can't run this code in Node, so I guess it needs some kind of module to use it properly.
Has anyone seen this before?