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

Function valueToString

packages/search-expression/src/exec.ts:19–31  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

17}
18
19function valueToString(value: any) {
20 if (value == null) {
21 return '';
22 }
23 switch (typeof value) {
24 case 'string':
25 return value;
26 case 'boolean':
27 case 'number':
28 return value.toString();
29 }
30 return '';
31}
32
33function isStringOperation(ex: SearchExpression) {
34 switch (ex.operator) {

Callers 2

constructorMethod · 0.70
runExpressionOnColumnMethod · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected