buf.equals()
buf.equals(otherBuffer)
- otherBuffer {Buffer}
- 返回:{Boolean}
console.log(buf1.equals(buf2));
// Prints: true
console.log(buf1.equals(buf3));
// Prints: false
buf.equals(otherBuffer)
console.log(buf1.equals(buf2));
// Prints: true
console.log(buf1.equals(buf3));
// Prints: false