diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 227e5257ead15a..d506cc1a1173b8 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -879,6 +879,19 @@ for (let i = 0; i < str.length ; i++) { console.log(buf.toString('ascii')); ``` +### buf.buffer + +The `buffer` property references the underlying `ArrayBuffer` object based on +which this Buffer object is created. + +```js +const arrayBuffer = new ArrayBuffer(16); +const buffer = Buffer.from(arrayBuffer); + +console.log(buffer.buffer === arrayBuffer); +// Prints: true +``` + ### buf.compare(target[, targetStart[, targetEnd[, sourceStart[, sourceEnd]]]])