From d11eca0e786833d559a3005639be34cfff67dde8 Mon Sep 17 00:00:00 2001 From: nishigawa Date: Tue, 29 Mar 2022 16:41:21 +0900 Subject: [PATCH] fix typo --- complex.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complex.rst b/complex.rst index 1d55ff9..dbf7509 100644 --- a/complex.rst +++ b/complex.rst @@ -438,7 +438,7 @@ JSONをパースすると、オブジェクトと配列で階層構造になっ // 省略可能。通常はnull // 3つめは配列やオブジェクトでインデントするときのインデント幅 // 省略可能。省略すると改行なしの1行で出力される - const json = JSON.stringfy(smallAnimal, null, 2); + const json = JSON.stringify(smallAnimal, null, 2); // これは複製されて出てくるので、元のsmallAnimalとは別物 const smallAnimal2 = JSON.parse(json);