Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created October 27, 2016 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/db46a3e2de9895213cff51ceb6108057 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/db46a3e2de9895213cff51ceb6108057 to your computer and use it in GitHub Desktop.
var renderManeuvers = function(maneuvers) {
return [
'<ol class="directions">',
maneuvers.map(function(maneuver) {
return '<li>' + maneuver.instruction + '</li>';
}).join(''),
'</ol>'
].join('');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment