MCPcopy Create free account
hub / github.com/dailydotdev/apps / stringToBoolean

Function stringToBoolean

packages/shared/src/lib/utils.ts:7–13  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

5export const TRENDS_SOURCE_ID = 'trends';
6
7export const stringToBoolean = (value: string): boolean => {
8 if (typeof value !== 'string') {
9 return false;
10 }
11
12 return value.toLowerCase() === 'true';
13};
14
15export const formatCurrency = (
16 value: number,

Callers 3

PlusIOSFunction · 0.90
PreferenceOptionsFormFunction · 0.90
CoreOptionListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected