Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upsimple example pretty.js - split #98
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
milanbella commentedJul 24, 2016
That example is not instructive of concepts and is buggy.
Curl fetches only one line without EOL so it works. But mapping only just one line of input to json is not good way explaining the concept of 'map' function.
As soon as I tried mapping more then one line pretty.js has crashed in json parser on syntax error because es.split() has correctly generated empty string after last EOL terminating last line.