Course lesson

Records and Objects in Reason

Records are like JavaScript objects but are

Duration
6 min
Access
Free
Transcript
Available

Records are like JavaScript objects but are

  • immutable by default
  • fixed in field names and types

We walk through how to create, access, update and destructure records. In certain niche situations we don't know the structure of our data ahead. In such cases using ReasonML objects works great.