From 8228a754afcb845db99e338e9ffd157c0ee61fc1 Mon Sep 17 00:00:00 2001 From: LiAn Date: Tue, 22 Mar 2022 03:23:19 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-lightweightset.md. Signed-off-by: LiAn --- .../application-dev/reference/apis/js-apis-lightweightset.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md index 7703b787c8..46ffa91b13 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md @@ -160,7 +160,7 @@ has(key: T): boolean let lightWeightSet = new LightWeightSet(); let result = lightWeightSet.has(123); lightWeightSet.add(123); -let result = lightWeightSet.has(123); +result = lightWeightSet.has(123); ``` @@ -188,7 +188,7 @@ equal(obj: Object): boolean let lightWeightSet = new LightWeightSet(); lightWeightSet.add("Ahfbrgrbgnutfodgorrogorgrogofdfdf"); lightWeightSet.add("sdfs"); -let obj = {"Ahfbrgrbgnutfodgorrogorgrogofdfdf", "sdfs"}; +let obj = ["Ahfbrgrbgnutfodgorrogorgrogofdfdf", "sdfs"]; let result = lightWeightSet.equal(obj); ``` -- GitLab