• Returns true if the value type is the same as the type passed as the second parameter, false otherwise.

    Parameters

    • value: any
    • type: "string" | "number" | "bigint" | "object" | "function" | "Array" | "Uint8Array" | "Buffer" | "stringified-bigint" | "hexadecimal" | "bignumber" | "bignumberish"

      The expected type.

    Returns boolean