For secret keys, this property represents the size of the key in bytes. This property is undefined for asymmetric keys.
property
crypto.KeyObject.symmetricKeySize
symmetricKeySize?: number