Editing JavaScript/Notes/Factory
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 366: | Line 366: | ||
=== Introduce Parameter Object === | === Introduce Parameter Object === | ||
[[JavaScript/Notes/ParameterObject | [[JavaScript/Notes/ParameterObject Parameter Object]]s are useful replacements for parameter lists, particularly long ones, or sets of parameters that always go together. | ||
In this case, Parameter Objects are useful because they can have any number of properties needed by any constructor. | In this case, Parameter Objects are useful because they can have any number of properties needed by any constructor. |