DEV Community

Discussion on: Easy functional programming techniques in TypeScript for everyone

Collapse
 
juliang profile image
Julian Garamendy

Hi! It may be worth mentioning that
"TypeScript comes with a ReadonlyArray type that is the same as Array with all mutating methods removed, so you can make sure you don’t change your arrays after creation"

typescriptlang.org/docs/handbook/i...

Collapse
 
deepu105 profile image
Deepu K Sasidharan

Oh yes, I completely forgot about those