MCPcopy Index your code
hub / github.com/nodejs/node / isJwk

Function isJwk

lib/internal/crypto/keygen.js:80–82  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

78const { isArrayBufferView } = require('internal/util/types');
79
80function isJwk(obj) {
81 return obj != null && obj.kty !== undefined;
82}
83
84function wrapKey(key, ctor) {
85 if (typeof key === 'string' ||

Callers 1

wrapKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected