Options
All
  • Public
  • Public/Protected
  • All
Menu

Module isBuffer

Index

References

Functions Lang

References

Renames and re-exports isBuffer

Lang Functions

  • isBuffer(value: any): value is Buffer
  • Checks if value is a buffer.

    since

    5.4.0

    example
    isBuffer(new Buffer(2))
    // => true

    isBuffer(new Uint8Array(2))
    // => false

    Parameters

    • value: any

      The value to check.

    Returns value is Buffer

    Returns true if value is a buffer, else false.