]> zoso.dev Git - buffer.git/commit
Replace `Buffer.isBuffer` with `instanceof Buffer`
authorFeross Aboukhadijeh <feross@feross.org>
Thu, 9 Feb 2017 03:38:10 +0000 (19:38 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Thu, 9 Feb 2017 03:38:10 +0000 (19:38 -0800)
commit9e12b1d89b2fe67faf91eb93087bafd0975699ec
treefdcd3b4bd403d438a0b6fe7a483f09193e74a1a2
parent8ba284cd945629450dac9253e097223a2199d802
Replace `Buffer.isBuffer` with `instanceof Buffer`

It's one less function call, and we don't need to avoid `instanceof
Buffer` anymore because our Buffer is proper subclass of Uint8Array
now, instead of just an Uint8Array with the methods added on as
properties.
index.js