MCPcopy Index your code
hub / github.com/microsoft/SandDance / invertSearchExpressionGroup

Function invertSearchExpressionGroup

docs/app/js/sanddance-app.js:6354–6361  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

6352// Licensed under the MIT license.
6353var _group = require("./group");
6354function invertSearchExpressionGroup(input) {
6355 //this only works if all expressions in this group have the same clause
6356 const output = {
6357 expressions: input.expressions.map(invertSearchExpression)
6358 };
6359 if (input.clause) output.clause = invertedClauses[input.clause];
6360 return output;
6361}
6362const invertedOperators = {
6363 "!=": "==",
6364 "==": "!=",

Callers 1

invertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected