angularjs - remove an object from an object array in javascript -
i have object like:
object {w74: object, w100: object,w12: object,w3: object}
i need eleminate 1 of them have
object {w74: object, w100: object,w3: object}
how can remove in javascript
use delete operator:
var ob = {w74: {number: 1}, w100: {number: 2},w12: {number: 3},w3: {number: 4}}; console.log(ob); delete ob.w74; console.log(ob);
Comments
Post a Comment