Home / Function/ hasKey() — fastify Function Reference

hasKey() — fastify Function Reference

Architecture documentation for the hasKey() function in decorate.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  11692e5b_f016_8497_4047_012d2b7bdd24["hasKey()"]
  b5b3567f_29bc_3ac4_2dcc_eba5eeb01c3e["decorate.js"]
  11692e5b_f016_8497_4047_012d2b7bdd24 -->|defined in| b5b3567f_29bc_3ac4_2dcc_eba5eeb01c3e
  8e5a8605_9ce7_799e_064b_2022f3777b88["decorateConstructor()"]
  8e5a8605_9ce7_799e_064b_2022f3777b88 -->|calls| 11692e5b_f016_8497_4047_012d2b7bdd24
  1a95bc02_b753_7419_3efc_0b867baa83a6["checkExistence()"]
  1a95bc02_b753_7419_3efc_0b867baa83a6 -->|calls| 11692e5b_f016_8497_4047_012d2b7bdd24
  a9a61a5e_2cba_4205_859b_f872bab3de47["checkRequestExistence()"]
  a9a61a5e_2cba_4205_859b_f872bab3de47 -->|calls| 11692e5b_f016_8497_4047_012d2b7bdd24
  05dd292f_1c2f_7477_7833_697ccfd5b992["checkReplyExistence()"]
  05dd292f_1c2f_7477_7833_697ccfd5b992 -->|calls| 11692e5b_f016_8497_4047_012d2b7bdd24
  style 11692e5b_f016_8497_4047_012d2b7bdd24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

lib/decorate.js lines 89–94

function hasKey (fn, name) {
  if (fn.props) {
    return fn.props.find(({ key }) => key === name)
  }
  return false
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does hasKey() do?
hasKey() is a function in the fastify codebase, defined in lib/decorate.js.
Where is hasKey() defined?
hasKey() is defined in lib/decorate.js at line 89.
What calls hasKey()?
hasKey() is called by 4 function(s): checkExistence, checkReplyExistence, checkRequestExistence, decorateConstructor.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free