Jump to content

JavaScript: Difference between revisions

Line 257: Line 257:
my_set.clear();
my_set.clear();


// Returns if key has in the set
// Returns true if key was in the set
my_set.delete(key);
my_set.delete(key);
</syntaxhighlight>
</syntaxhighlight>