MCPcopy Create free account
hub / github.com/microsoft/SandDance / ensureSearchExpressionGroupArray

Function ensureSearchExpressionGroupArray

docs/tests/v2/es6/js/sanddance.js:138710–138718  ·  view source on GitHub ↗
(search)

Source from the content-addressed store, hash-verified

138708}
138709
138710function ensureSearchExpressionGroupArray(search) {
138711 if (Array.isArray(search)) {
138712 return [...search];
138713 } else if (isSearchExpressionGroup(search)) {
138714 return [search];
138715 } else {
138716 return [createGroupFromExpression(search)];
138717 }
138718}
138719},{}],"d1q6":[function(require,module,exports) {
138720"use strict";
138721

Callers

nothing calls this directly

Calls 2

isSearchExpressionGroupFunction · 0.70

Tested by

no test coverage detected