The c‎wrapOmit is a very powerful versatile directive used to prevent the final rendering of elements or key-value pairs from their appearance.

In this example it will prevent from adding any class to current element in other words it will remove whole class attribute. It works a little bit different than c‎wrapPlaceholder directive that will be described on next documentation page.

{
  "attributes": { 
    "href": "c‎wrapProperty[prefixAside=../]c‎wrapGlobal[documentation.advanced concepts.c‎wrapIndex]/", 
    "class": "c‎wrapArray[{‎{return c‎wrapReference.globals.const.documentation['advanced concepts'].map((x) =>  x !== c‎wrapRoute.replace('documentation/','') ? 'c‎wrapOmit' : 'focus')}‎}]" 
  }
}

In here by default, the property 'script' has the value 'script', resulting in the script element being rendered. However, if replaced with 'c‎wrapOmit', it will prevent this element from being rendered in the final DOM.

{
  "element": "c‎wrapProperty[script=script]",
  "attributes": {
    "type": "module",
    "src": "c‎wrapProperty[prefix=./]static/scripts/c‎wrapProperty[scriptSource=home.js]"
  }
}

In this example, when 'c‎wrapOmit' is passed as a property into 'hamburgerNavDisplay', it will remove the current 'display: flex' key-value pair, leaving 'margin-left: 1em;' intact.

{
  "element": "c‎wrapProperty[script=script]",
  "mediaQueries": [
    {
      "query": "max-width: 1024px",
      "style": "display: c‎wrapProperty[hamburgerNavDisplay=flex]; margin-left: 1em;"
    }
  ],
  "attributes": {
    "type": "module",
    "src": "c‎wrapProperty[prefix=./]static/scripts/c‎wrapProperty[scriptSource=home.js]"
  }
}