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

Function isPositiveNumberString

helpers/check-types.js:19–23  ·  view source on GitHub ↗
( maybeNumber )

Source from the content-addressed store, hash-verified

17}
18
19export function isPositiveNumberString ( maybeNumber ) {
20 if ( !isString( maybeNumber ) ) return false
21
22 return /\d+$/.test( maybeNumber )
23}
24
25
26export function isValidHttpUrl( maybeUrl, allowUnsecure = false ) {

Callers

nothing calls this directly

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected