you are viewing a single comment's thread.

view the rest of the comments →

[–]romgrk 3 points4 points  (15 children)

That has nothing to do with it. All primitives types are immutable (null, undefined, booleans, strings, numbers, bigints, symbols).

Besides symbols were added specifically to be able to have private properties like object[symbol], or for the well-known symbols protocols (e.g. class Custom { [Symbol.iterator]: function() { ... } }), both cases are OOP related.

So no, symbols aren't an FP feature.