JavaScript: Difference between revisions
Line 257: | Line 257: | ||
my_set.clear(); | my_set.clear(); | ||
// Returns if key | // Returns true if key was in the set | ||
my_set.delete(key); | my_set.delete(key); | ||
</syntaxhighlight> | </syntaxhighlight> |
Line 257: | Line 257: | ||
my_set.clear(); | my_set.clear(); | ||
// Returns if key | // Returns true if key was in the set | ||
my_set.delete(key); | my_set.delete(key); | ||
</syntaxhighlight> | </syntaxhighlight> |