TIL you can use "http://Object.prototype.toString.call (obj) === '[object Uint8Array]'" as a performant alternative to Buffer.isBuffer() - can, not should
-
-
Replying to @yoshuawuyts
Drawback is that it doesn't work in older node versions, less readable, also allows raw Uint8Arrays - but if you control the env it can be
1 reply 0 retweets 0 likes -
Replying to @s0yuka
the latest - you'd need to BYO V8 for it to be faster rn
1:50 PM - 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.