Skip to content

Latest commit

 

History

History
75 lines (68 loc) · 2.82 KB

value.md

File metadata and controls

75 lines (68 loc) · 2.82 KB

Value

A value is a piece of data that does not have identity.

What do we mean by that? It's all to do with how we determine if two values are the same (aka the equality operator).

  • Two values are the same if all the data in both values is identical.
  • Two entities are the same if their identities are identical.

Values can be:

Values don't have to be immutable, and certainly in Typescript, you should assume that they're not immutable by default.