Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
How to delete a particular object key array value

Trying to remove a particular array value from an object. But it is not working. How to remove a array value from an object. If anyone knows please help to find the solution.

app.component.ts:

  public obj = {
    test1: ['j23', 'k54', 'm56'],
    test2: ['j29', 'k34', 'm59'],
    test3: ['j73', 'k94', 'm26'],
  };

 ngOnInit(): void { 
    delete this.obj['test1']['k54']; 
    console.log(this.obj);
 }

Demo: https://stackblitz.com/edit/angular-ivy-ekhxjo?file=src%2Fapp%2Fapp.component.ts

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!