UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

13 lines (11 loc) 389 B
export const isBufferExists = typeof Buffer !== "undefined"; export const isBuffer = isBufferExists ? Buffer.isBuffer.bind(Buffer) : ( /** * Check if the provided value's type is `Buffer` * @param value - The value to type check * @returns An indicator specifying if the value provided is of type `Buffer` */ function isBuffer2(value) { return false; } );