DEV Community

Discussion on: Challenge Record Collection

Collapse
maxnyby profile image
Info Comment hidden by post author - thread only visible in this permalink
maxnyby

If prop is “tracks” and the object doesn’t have a property “tracks” already, and value is an empty string, then the “tracks” property is initialized with an array containing a single empty string.
This corresponds with your documentation, but is it indeed the intended behavior?
Afterwards it is not possible to add further empty strings to the tracks property, so this might be a glitch?

Some comments have been hidden by the post's author - find out more