It looks like an attempt to destructure a variable called res . I have never seen this in Javascript and the Chrome console, that this is an error:
> var res = [ 1, 2, 3 ]; > var {status, headers, body} = res; SyntaxError: Unexpected token {
The Firebug console on Firefox 4b12 does not complain, but the statement does not seem to have an effect:
> var res = [ 1, 2, 3 ]; > var {status, headers, body} = res; > status undefined > headers undefined > body undefined
FilipK
source share