mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 05:02:17 -04:00
chore(i18n,learn): processed translations (#49944)
This commit is contained in:
@@ -21,9 +21,8 @@ Completa la funzione usando le regole sottostanti per modificare l'oggetto passa
|
||||
|
||||
- La funzione deve sempre restituire l'intero oggetto `records`.
|
||||
- Se `value` è una stringa vuota, elimina la proprietà `prop` dall'album.
|
||||
- Se `prop` non è `"tracks"` e `value` non è una stringa vuota, assegna `value` alla `prop` di quell'album.
|
||||
- Se `prop` è `"tracks"` e `value` non è una stringa vuota, aggiungi `value` alla fine dell'array `"tracks"` già esistente dell'album.
|
||||
- Se l'album non ha una proprietà `"tracks"` crea un nuovo array per la proprietà `"tracks"` dell'album prima di aggiungervi `value`.
|
||||
- If `prop` isn't `tracks` and `value` isn't an empty string, assign the `value` to that album's `prop`.
|
||||
- If `prop` is `tracks` and value isn't an empty string, add the `value` to the end of the album's `tracks` array. You need to create this array first if the album does not have a `tracks` property.
|
||||
|
||||
**Nota:** una copia dell'oggetto `recordCollection` viene utilizzata per i test. Non dovresti modificare direttamente l'oggetto `recordCollection`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user