KeyObject.prototype.equals - Node documentation
method KeyObject.prototype.equals

Usage in Deno

import { KeyObject } from "node:crypto";
KeyObject.prototype.equals(otherKeyObject: KeyObject): boolean

Returns true or false depending on whether the keys have exactly the same type, value, and parameters. This method is not constant time.

Parameters

otherKeyObject: KeyObject

A KeyObject with which to compare keyObject.

Return Type

boolean