Skip to content

mistake in example code? #26

@dannyko

Description

@dannyko

Hi,

In the "addToSet" and "removeFromSet" pasted below that appear after Exercise 14, shouldn't the double dots ".." be triple dots "..." in order to avoid requesting an element that does not exist?

addToSet = (set, values) ->
for i in [0..values.length]
set[values[i]] = true

removeFromSet = (set, values) ->
for i in [0..values.length]
delete set[values[i]]

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