cookbook
cookbook copied to clipboard
Improve code highlighting
mapReduce
accepts both code strings and function objects as its map
and reduce
arguments.
Defining these as function objects instead of code strings in tutorial improves readability, as function objects definition are correctly highlighted, while code strings are treated as plain string literals.