Instead of letting the Uint8Array implementation's .lastIndexOf be
exposed, since that one has a different interface.
throw new TypeError('val must be string, number or Buffer')
}
+Buffer.prototype.lastIndexOf = function () {
+ throw new Error('Not implemented yet. PR welcome! https://github.com/feross/buffer/issues/114')
+}
+
Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
return this.indexOf(val, byteOffset, encoding) !== -1
}