Checking for a Buffer The static Buffer.isBuffer method checks if a value is a Buffer instance. console.log(Buffer.isBuffer('hello world'))console.log(Buffer.isBuffer( Buffer.from('hello world') ))