MCPcopy
hub / github.com/ionic-team/ionicons / isStr

Function isStr

src/components/icon/utils.ts:158–158  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

156export const isSrc = (str: string) => str.length > 0 && /(\/|\.)/.test(str);
157
158export const isStr = (val: any): val is string => typeof val === 'string';
159
160export const toLower = (val: string) => val.toLowerCase();
161

Callers 3

isValidFunction · 0.90
getNameFunction · 0.85
getSrcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…