Can anyone guide me in deleting an object from array of objects in javascript
Here's my javascript code
<script>
var line = {lines:[]};
function change(num){
line.lines.push({"linechange":num});
}
</script>
Here num
is some integer value, Is there a way to delete the pushed object based on the value of num
?