Open g-patel opened 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.
Array.prototype.map
Following won't work: console.log('Follow: ' + team.join(' ') + '!');
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.
team.map()
join()
Is there any update on the issue?
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 thenjoin()
should be called on that variable.