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

Function isBoolean

packages/sanddance-explorer/src/controls/dataItem.tsx:28–38  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

26}
27
28function isBoolean(value: any) {
29 if (typeof value === 'boolean') return true;
30 if (typeof value === 'string') {
31 switch (value.toLowerCase()) {
32 case true + '':
33 case false + '':
34 return true;
35 }
36 }
37 return false;
38}
39
40function bingSearchLink(column: SandDance.types.Column, value: any) {
41 if (isNumber(value)) return null;

Callers 1

bingSearchLinkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected