DEV Community

Discussion on: Challenge Record Collection

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

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