Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/buffer.ts>default.isBuffer

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method default.isBuffer
import { default } from "https://deno.land/std@0.74.0/node/buffer.ts";

Returns true if obj is a Buffer, false otherwise.

Parameters

obj: unknown

Returns

obj is Buffer