Chapter 2 Optional Lab TYPO

Hi, would you say there is a typo going on within these words?
_"Within map, the argument to input can be any expression as long as it resolves to an array. The argument to as is the name we want to use to refer to each element of the array when performing whatever logic we want, surrounding it with quotes and prepending two signs. The field as is optional, and if omitted each element must be referred to as “$$this”

writers: {
$map: {
input: “$writers”,
as: “writer”,
in: “$$writer”"_

1 Like


Thank you very much for pointing that out, you are right. The name of the variable you specify in the as field does not have two dollar signs prepended, it’s just a variable name which defaults to this if not specified.

José Carlos

1 Like