I'm wondering why does the following code gives an Illegal Invocation
error
_.flow( console.log ) ( 123 ) // Illegal Invocation
function log(){ _.each(arguments, function(o) { console.log(o) }); }
_.flow( log ) ( 123 ) // 123
Running this on Chrome Version 49.0.2623.112 (64-bit) with lodash v4.13.1
To be sepcific I ran this on the developer tools on Chrome by pressing Ctr+Shift+J
on lodash's documentation page