I have such an object.
var Obj = { obj1 : { val : 1, id : 1 } obj2 : { val : 2, id :2 } obj3 : { val : 3, id :3 } }
I want to remove obj1, can anyone suggest how to achieve this.
Use the delete keyword
delete Obj.obj1
Source: https://habr.com/ru/post/1262988/More articles:Using AWS Cognito and aws-ios-sdk v.2.4.16 with Developer Identifiers - iosBright Java 8 expression with sequence - javaQuery Builder for Angular2 - angularAndroid working with IoT devices without internet connection - javajava: incompatible types: output variable T has incompatible equality constraints: lower bounds: java.util.List <> - javaHow to convert node.js code to a regular javascript browser? - javascriptCelery tasks lost after sending rabbitmq - celeryMoving amounts for groups with uneven time intervals - dateConditional mutant cumsum dlpyr - rR: calculate the number of individual categories for a specified period of time - rAll Articles