Comments on 2016-12-31 JavaScript head

Still, the `head` utility would handle large files way faster, as it wouldn’t have to parse the entire thing ;)

But it’s hard not to adore the elegance of such one-liners

kuba-orlik 2017-01-01 11:24 UTC


Fair enough. In my use-case, I had the whole string in memory anyway, so no additional overhead was involved.

– Marcin Borkowski 2017-01-01 15:00 UTC