Method that passes options to its object
- by user321399
In JavaScript I'd like to take an object and pass a parameter to it and based on the parameter hve a method that will pass settings to the parameter:
functionName( parameter , settings );
Or
functionName( parameter ).methodName( settings );