3 ms·
That does, in fact, appear to be a nearly textbook example of JavaScript object destructuring. See the Mozilla Developer reference site[0], specifically the "Un
by Tcepsa 5y ago
That does, in fact, appear to be a nearly textbook example of JavaScript object destructuring. See the Mozilla Developer reference site[0], specifically the "Unpacking fields from objects passed as a function parameter" section.
(Edited for clarity)
[0]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#object_destructuring https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...