Skip to content

07 array iterators. #15

@jjeepjoe

Description

@jjeepjoe

I am enjoying the videos, and able to follow everything well; the only issue I have had so far was understanding the practice file use of CONCAT with the variable in brackets. return [current].concat(reversedList); I understand what CONCAT is doing, but I was confused about the brackets around the variable name. You never mentioned anything about the use of brackets around a variable, so I had to dissect your answer. I was under the impression that reduce returned arrays. The second practice also has me confused with the use of these brackets. the conditional Array.isArray(current) when TRUE should deal with the inner array value, right?
Any way "long story short," can you provide an explanation to the use of bracket around a variable? Also, what other DVD's have you put out? I searched and did not find much. You put together a nice program!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions