How to compare two buffers in Node.js?
Originally posted here!
To compare 2 buffers in Node.js, we can use the compare() method in the buffer object.
Let's say we have a buffer object like this,
// buffer 1
const buff1 = Buffer.from("EFG");
and another buffer like this,
// buffer 1
cons...
melvingeorge-me.hashnode.dev3 min read