Comment

Comment by espadrine

  s1 = Symbol.for('cat')
  s2 = Symbol.for('cat')
  s1 === s2  // true
The most common use-case for them is to generate symbols that don't collide, though.
parent espadrine 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton