Looking at the documentation for ES6 Object.assign and Lodash _.assign it looks like these function in exactly the same way.
Is that a correct understanding? Or am I missing something?
Depends on the browser. Per the lodash docs:
Made _.assign use built-in Object.assign when available.
You can go here for browser support:
Basically, IE doesn't have support so lodash's code is used in that case
MDN Docs on Object.assign
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With