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

Function hasUsage

lib/internal/crypto/util.js:880–882  ·  view source on GitHub ↗

* Returns whether `mask` contains `usage`. * @param {number} mask * @param {string} usage * @returns {boolean}

(mask, usage)

Source from the content-addressed store, hash-verified

878 * @returns {boolean}
879 */
880function hasUsage(mask, usage) {
881 return (mask & kUsageMasks[usage]) !== 0;
882}
883
884/**
885 * Returns the usages represented by `mask` in canonical order.

Callers 1

hasCryptoKeyUsageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…