From 5b03f5728d8de52c75489475137d554b1f6ce58e Mon Sep 17 00:00:00 2001 From: jun-low Date: Sun, 4 Oct 2020 20:53:53 +0800 Subject: [PATCH] Update isDuplicates.md --- snippets/isDuplicates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/isDuplicates.md b/snippets/isDuplicates.md index 0a74f55eb..4a17f4b6e 100644 --- a/snippets/isDuplicates.md +++ b/snippets/isDuplicates.md @@ -6,7 +6,7 @@ tags: array,intermediate Check if there's duplicate values in a flat array. - Convert original array into a Set. -- The `.size()` returns the number of (unique) elements in a Set object. +- The `Set.prototype.size` returns the number of (unique) elements in a Set object. - Compare the lengths of the array and the Set.