MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / isTrue

Function isTrue

web/packages/framework/src/utils/index.ts:151–156  ·  view source on GitHub ↗
(value: any, strict = false)

Source from the content-addressed store, hash-verified

149 * @returns 返回boolean
150 */
151export const isTrue = (value: any, strict = false) => {
152 if (typeof value === 'string' && !strict) {
153 return value.toLowerCase() === 'true';
154 }
155 return value === true;
156};

Callers 1

index.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected