Skip to main content

function ↔ callable Block of code to perform action or return Value

aka fn, func

Currier Function

function to pass/return another Callback Fn

function purpose

Anon Function

function w/o Identifier

function definition

Binding for a function to define signature

function output

References

  1. Higher-Order Functionfn to receive Callback arg, to return fn, or both

  2. Callback Functionfunction to call later (ie pass into Higher-Order Function)

  3. Function SignatureType Annotation to define function I/O

  4. ParameterVariable pass into function to define Function Signature, imports Arguments & act as local variable

  5. functionJS Keyword to Declare function (with optional Argument Parameters)

  6. Methodfunction attach as Object property to define behaviour

  7. ArgumentValue import as Parameter input to function

  8. function definitionBinding for a function to define signature

  9. .toString() ↔ to return string of Source Code of calling function

  10. FunctionGlobal Constructor for new function Object

  11. @constructorJSDoc tag to mark function as Constructor Function

  12. ClosureInternal Property of function to preserve access to VE of EC at its creation

  13. Factory Functionfunction to return Object (w/o this keyword & new)

  14. Constructor Functionfunction to programmatically create Object (& link via __proto__ after Instantiation with new)

  15. FCfunction to return UI via JSX. Pass propsfor dynamic input. add state via Hook

  16. Chain ↔ (JS Syntax) to group functions into single line via Dot Notation

  17. throwJS Keyword Statement to stop executing current function with user-defined Exception

  18. --strictFunctionTypes ↔ to flag TSC to enforce stronger checks for function Types

  19. Args ObjectObject to contain all args pass into function (for current EC)

  20. _this_ keywordSpecial variable which 👉to "owner" of calling function

  21. JS Operatorreserved JS Syntax to perform built-in function on Operands

  22. returnJS Keyword to specify a single Variable/Expression output from function

  23. setInterval() ↔ to call function or evaluate Expression, repeatedly at specific intervals

  24. setTimeout() ↔ to execute function (or Expression), once after timer expires

  25. Global Functionfunction declare in Global Scope

  26. Recursionfunction to call itself from its implementation body

  27. .call()Function Instance Method to invoke function with explicit this keyword [and optional Argument]

  28. Simplicityfunction are simpler to compose than class which applies more Abstraction

  29. Stubline of code (for function), indexed by __line number & VariableType

  30. Cleanup Functionfunction call on Unmount, via return function from useEffect()

  31. Memo()React function from useMemo() API for Memoization of any function !snippet for addition

<code>import</code>  {memo} 
const add = (a, b) => a + b;
const memAdd = memo(add)
  1. First-Class Functions ↔ of function equiv to regular Variables

  2. Typed Callback FunctionType Annotation for Anon Function pass as arg to function

  3. "strictFunctionTypes": true ↔ to set stricter checks for functions

  4. "noUnusedParameters": true ↔ to warn/throw when function Parameter unused (inside function)

  5. "noImplicitReturns": true ↔ to throw when any function branch missing explicit return (when at least one branch has explicit return; else it's okay to omit)

  6. express()Express function to init new Express Instance

  7. asyncJS Keyword to prepend function to allow Asynchronous Code

  8. express.static()Express function to invoke new instance of static file server

  9. Reducerfunction to Reduce to new state value from Action input

  10. Lazy Initial valuefunction pass as Parameter into useState(), to assign return value as Initial State value, on first-call only

  11. Initialization Functionfunction pass as Init Arg to useReducer() to generate Initial State for Reducer

  12. Updater Functionfunction call by Component to update state value

  13. Setterfunction to set a value, prepend class Method with set JS Keyword. Called as property literal reassignment

  14. Getterfunction to get a value, called as property literal; prepend Method with get JS Keyword

  15. Lazy()React API function to Lazy Load FC for Suspense Boundary

  16. hydrate() ↔ replace by hydrateRoot() ReactDOM API function to Hydrate container render by ReactDOMServer

  17. render() ↔ replace by createRoot(). ReactDOM API function to render element to DOM API inside container - for Client Component only

  18. renderToStaticMarkup()ReactDOMServer function to SSG as raw HTML

  19. renderToString()ReactDOMServer function to render element to HTML string, for initial page load || SEO

  20. Currier Functionfunction to pass/return another Callback Fn

  21. createContext()Context API fn to create Context Object

  22. Root Reducerredux fn to compute new state from old state & Action data

  23. Dispatchredux fn to send Action object to Reducer

  24. createStore()OLD Redux API fn to create new Store Instance

  25. Tag Template FunctionJS Syntax for function to parse Template Literal

  26. EffectCallback to run inside function, under certain conditions

  27. Dispatch Functionfn to Dispatch Action to Reducer

  28. createPortal()ReactDOM API Escape Hatch fn to render child Element to any container Element other than parent

  29. Event Listenerfunction to await Event & on Signal Trigger, call Event Handler

  30. MicrotaskCallback to defer fn after parent EC popped off Call Stack