ã¯ããã« å人çã«ãã£ã¨å¾
ã¡ãã³ã¦ãæ©è½ãã¤ãã«æ¨æºæè¼ããã¾ããã ãªãã¸ã§ã¯ãã®ãã£ã¼ãã³ãã¼ãè¡ã£ã¦ããã structuredClone ã§ãã ä»åã¯ãã®ã¡ã½ãããã©ããªæ©æµãããããã¦ãããã®ããã¾ãã§ãããã¨ã§ããªããã¨ããµã³ãã«ã§ç¢ºèªããªãã解説ãã¦ããã¾ãã ã·ã£ãã¼ã³ãã¼ã¨ãã£ã¼ãã³ãã¼ ã¾ãã¯ãã¿ã¤ãã«ã«ãæ¸ãã¦ããã£ã¼ãã³ãã¼ã«ã¤ãã¦ç解ãå¿
è¦ãªã®ã§ç°¡åã«è§£èª¬ãã¾ãã 対æ¯ã§ããã·ã£ãã¼ã³ãã¼ã交ãã¦æ¯è¼ããªããæåã確èªãã¦ã¿ã¾ãã ã·ã£ãã¼ã³ãã¼ ã·ã£ãã¼ã³ãã¼ã¯ååéãæµ
ã(shallow)ã³ãã¼ã§ããå
·ä½çã« JavaScript ã§ã¯ 1 é層ã¾ã§ã³ãã¼ããã¨ããæå³ã§ä½¿ããã¾ãã ã·ã£ãã¼ã³ãã¼ã®ããæ¹ã¯ä»¥ä¸ã§ãã const obj = { a: "a", b: { bb: "bb", }, }; // ããæ¹1 ã¹ãã¬ããæ§æã§ã®ã³ãã¼ const
{{#tags}}- {{label}}
{{/tags}}