Angular 9, Angular 10Angular 9, Angular 10

Here to all, welcome to therichpost.com. In this post, I will tell you, Angular 9 – how to remove last array element?

Here is the code snippet and you can add this into to your app.component.ts file:

let array_1 = [1,2,3,4];
array_1.splice(-1,1)  //  output--> array_1 = [1,2,3]

If you have any kind of query then please comment below.

jassa

Thanks

By therichpost

Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 19, MedusaJs, Next.js, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.