MCPcopy
hub / github.com/bigskysoftware/htmx / matchOpToken

Function matchOpToken

www/static/test/lib/_hyperscript.js:282–286  ·  view source on GitHub ↗

* @param {string} value * @returns {Token | void}

(value)

Source from the content-addressed store, hash-verified

280 * @returns {Token | void}
281 */
282 function matchOpToken(value) {
283 if (currentToken() && currentToken().op && currentToken().value === value) {
284 return consumeToken();
285 }
286 }
287
288 /**
289 * @param {string} type1

Callers 2

requireOpTokenFunction · 0.70
matchAnyOpTokenFunction · 0.70

Calls 2

currentTokenFunction · 0.70
consumeTokenFunction · 0.70

Tested by

no test coverage detected