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

x/polkadot/util/is/buffer.ts>isBuffer

Package publishing for deno.land/x/polkadot
Go to Latest
function isBuffer
import { isBuffer } from "https://deno.land/x/polkadot@0.2.11/util/is/buffer.ts";

Examples

import { isBuffer } from 'https://deno.land/x/polkadot@0.2.11/util/mod.ts';

console.log('isBuffer', isBuffer(Buffer.from([]))); // => true

Parameters

value: unknown

Returns

value is Buffer