hidden class

An internal record V8 keeps of an object's property names and their order, so it can find properties quickly.

In more detail

Objects created with the same properties added in the same order share one hidden class, also called a shape or map. Knowing the shape lets TurboFan read a property from a fixed position instead of searching for it. Adding properties in a different order, or deleting them, creates new shapes and can make code slower.

Related terms

Taught in

References