I have an object
bigRow = {size:'long', color:'pink'};
Let's say I have another object table
, which has row
property, e.g.
table = {
row: 'bigRow',
column: 'smallColumn'
};
Can I pass the object 'bigRow' as a parameter to a function using table
's property value as a reference?
Can I write something like
function ( table.row )
that would work like
function ( bigRow )
Even though both turn out to be function( bigRow )
, the former comes out as a string without any connection to the object