Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deep-copying.pdf

CypressKuo
December 21, 2021

 Deep-copying.pdf

CypressKuo

December 21, 2021
Tweet

More Decks by CypressKuo

Other Decks in Technology

Transcript

  1. Non-primitive values are handled as references In JavaScript, a primitive

    (primitive value, primitive data type) is data that is not an object and has no methods. There are 7 primitive data types: string, number, bigint, boolean, undefined, symbol, and null. Primitive - MDN Web Docs Glossary: Definitions of Web-related terms | MDN (mozilla.org) JS-核心概念篇(by 于珊) 7
  2. 參考資料 Deep-copying in JavaScript using structuredClone (web.dev) Primitive - MDN

    Web Docs Glossary: Definitions of Web-related terms | MDN (mozilla.org) JS-核心概念篇(by 于珊) 深入探討 JavaScript 中的參數傳遞:call by value 還是 reference? - Huli 19