Skip to content

Documentation on hogan.js homepage assumes Array.prototoype.map mutates original array #251

Description

@g-patel

Documentation on hogan.js homepage (http://twitter.github.io/hogan.js/) assumes Array.prototoype.map mutates original array which is not true.

Note: Please move to the documentation (for homepage) repo if there is one. I could not find a one, so filing an issue on this repo.

This is a minor issue, but might confuse developers about Array.prototype.map.

Following won't work:
console.log('Follow: ' + team.join(' ') + '!');

To correct the doc, result of team.map() call needs to be stored in a variable, and then join() should be called on that variable.

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions