There are a number of immutable objects that are created over and over. Examples of these are: - The empty string; - On GC heap versions of boolean, null and undefined. Instances of these objects should be cached and re-used.
There are a number of immutable objects that are created over and over. Examples of these are:
Instances of these objects should be cached and re-used.