mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-15 10:00:47 -04:00
chore(i18n,learn): processed translations (#53415)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -22,7 +22,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, devi aggiornare l'array `tracks` dell'album. Prima di tutto, se l'album non ha una proprietà `tracks`, assegnale un array vuoto. Quindi aggiungi `value` come ultimo elemento nell'array `tracks` dell'album.
|
||||
- If `prop` is `tracks` and `value` isn't an empty string, but the album doesn't have a `tracks` property, create an empty array and add `value` to it.
|
||||
- If prop is `tracks` and `value` isn't an empty string, add `value` to the end of the album's existing `tracks` array.
|
||||
|
||||
**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