Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript how to add a property to an object

const myObject: {[key: string]: any} = {
    property: 'value'
};

myObject.property2 = 'value2';
 
PREVIOUS NEXT
Tagged: #typescript #add #property #object
ADD COMMENT
Topic
Name
2+9 =