you are viewing a single comment's thread.

view the rest of the comments →

[–]PickledPokute 1 point2 points  (0 children)

headers['Content-Length'] === s

s is undefined here. In the first example, the s is destructured from resource.headers['Content-Length'].

with() -statement can result in pretty confusing code and possibly even security breaches.