Chain
↔ (JS Syntax) to group functions into single line via Dot Notation
aka Chaining, Chain-Notation, Function-Chaining, Method-Chaining
Dot Notation
.
JS Syntax to Chain & Object Literal
Square Bracket Notation
JS Syntax to access element from Object via (string
) key
Optional Chaining
JS Syntax to conditionally call Chain or Dot Notation if function/property exists, else return undefined
References
Dot Notation
↔.
JS Syntax to Chain & Object LiteralOptional Chaining
↔ JS Syntax to conditionally call Chain or Dot Notation if function/property exists, else returnundefined
.catch()
↔ Chain Callback to handlePromise
Error
propagation.then()
↔async
Chain Method to execute Callback on Fullfill, auto-passPromise
Value as arg.json()
↔async
Chain Method to returnPromise
parse as JSON format.finally()
↔ Chain Callback to call at end, regardless of Fullfill or Reject