Typescript : How do you clear an array?


Answer :  this.cities.length = 0, given this.cities is your array.


Comments

Popular posts from this blog

A quick tutorial for OWASP ZAP tool for beginners

ionic2 cordova build android - Unable resolve gradle 2.2.3