Closed jimmywarting closed 2 years ago
This two can easily be replaced with Object.assign({}, ...) or with spread { ... } https://github.com/node-modules/urllib/blob/f2a42d19d2236979c16eea13c229839e5a78b381/lib/httpclient.js#L40 https://github.com/node-modules/urllib/blob/f2a42d19d2236979c16eea13c229839e5a78b381/lib/httpclient.js#L51
Object.assign({}, ...)
{ ... }
Here you can use Object.keys() https://github.com/node-modules/urllib/blob/04734a13e146da501f4e38333d5de9f9bbb259d1/lib/urllib.js#L309
Object.keys()
Pull request is welcome
Hi! Can I take this up?
sure
This two can easily be replaced with
Object.assign({}, ...)
or with spread{ ... }
https://github.com/node-modules/urllib/blob/f2a42d19d2236979c16eea13c229839e5a78b381/lib/httpclient.js#L40 https://github.com/node-modules/urllib/blob/f2a42d19d2236979c16eea13c229839e5a78b381/lib/httpclient.js#L51Here you can use
Object.keys()
https://github.com/node-modules/urllib/blob/04734a13e146da501f4e38333d5de9f9bbb259d1/lib/urllib.js#L309