MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / notEmpty

Function notEmpty

src/lib/api-helpers.ts:41–43  ·  view source on GitHub ↗
(value: T | null | undefined)

Source from the content-addressed store, hash-verified

39 (await withLocations(client, [item]))[0]
40
41const notEmpty = <T>(value: T | null | undefined): value is T => {
42 return value !== null && value !== undefined
43}
44
45const uniqueLocationIds = (list: WithLocation[]): string[] => {
46 // Note -- the `.filter(notEmpty))` is here because the source types such

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected