MCPcopy
hub / github.com/ThatGuySam/doesitarm / isString

Function isString

helpers/check-types.js:3–5  ·  view source on GitHub ↗
( maybeString )

Source from the content-addressed store, hash-verified

1// Universal Imports Only
2
3export function isString( maybeString ) {
4 return (typeof maybeString === 'string' || maybeString instanceof String)
5}
6
7export function isNonEmptyString ( maybeString ) {
8 if ( !isString( maybeString ) ) return false

Callers 10

scanMethod · 0.90
hasMethod · 0.90
client.test.tsFile · 0.90
isNonEmptyStringFunction · 0.85
isPositiveNumberStringFunction · 0.85
isValidHttpUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected