Put in order · Angular course · Module 6: Signals

Updating an object in a signal

Arrange the steps to add a new skill to a signal holding a samurai object (immutably).

Items to put in order

  • ...s,
  • }));
  • samurai.update(s => ({
  • skills: [...s.skills, 'Iaido']

You can check the correct answer by solving this task in the CodeWorlds game.