twitter / hogan.js

A compiler for the Mustache templating language
http://twitter.github.io/hogan.js
Apache License 2.0
5.14k stars 431 forks source link

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

Open g-patel opened 7 years ago

g-patel commented 7 years ago

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

g-patel commented 7 years ago

Is there any update on the issue?