Immutable

trait~ Immutable

Source:

This is a flag trait that in­dic­ates whether a type is im­mut­able.

Since javas­cript has not real way to en­force ab­so­lute im­mut­ab­il­ity this trait con­siders any­thing im­mut­able that is hard to mutate or really not sup­posed to be mutated. Func­tion is con­sidered im­mut­able des­pite it be­ing pos­sible to as­sign para­met­ers to func­tions...

This is used in a couple paces; spe­cific­ally it is used as a list of types that should be left alone in deep­clone and shal­low­clone.