Skip to content

Instantly share code, notes, and snippets.

@Ali-SaZa
Created September 28, 2020 09:53
Show Gist options
  • Save Ali-SaZa/f1538104139bc14bf70186149c014989 to your computer and use it in GitHub Desktop.
Save Ali-SaZa/f1538104139bc14bf70186149c014989 to your computer and use it in GitHub Desktop.
delete an array in array
with slice of code can delete an array in array :
this.coordinates = this.coordinates.filter(function (item) {
return (item[0] !== latlon[0] && item[1] !== [latlon[1]])
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment