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

std/node/_buffer.d.ts>Buffer.of

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

Creates a new Buffer using the passed {data}

Parameters

...items: number[]

to create a new Buffer