Does it make sense Flyweight pattern (Flyweight) in javascript?

Hello. Tried to understand the pattern of the trimmer, and did not understand. Found implementation - loredanacirstea.github.io/es6-design-patterns/#fly...
Studied and realized for each object a Flyweight object is created. Did the trimmer is not to avoid the creation of unnecessary objects?
On the other hand, JavaScript, like, and stores data about objects in the heap handler - which is substituted for the desired object, and separate arrays with the data object.
So what's the meaning of this pattern?
June 5th 19 at 21:04
1 answer
June 5th 19 at 21:06
Studied and realized for each object a Flyweight object is created. Did the trimmer is not to avoid the creation of unnecessary objects?

Something You do not understand it. flyweight is intended to save memory occupied by the object: if the object is not created it creates it and puts in its internal pool, if the object is already created (contained in the pool) - returns a reference to it. This pattern is well suited for creating all sorts of values, which by their nature can be similar and immutably

Find more questions by tags Patterns of designingJavaScript