TIL you can use "http://Object.prototype.toString.call (obj) === '[object Uint8Array]'" as a performant alternative to Buffer.isBuffer() - can, not should
Replying to @davidmarkclem
4-40% in certain stream benchmarks for current V8, 5% difference for future V8 - instanceof is expensive
11:01 AM - 17 Mar 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.