How to create inline objects with properties? February 4, 2023 by Tarik obj = type('obj', (object,), {'propertyName' : 'propertyValue'}) there are two kinds of type function uses.