MCPcopy Create free account
hub / github.com/microsoft/typescript-go / isAllDigits

Function isAllDigits

internal/jsnum/string.go:286–293  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

284}
285
286func isAllDigits(s string) bool {
287 for _, r := range s {
288 if !stringutil.IsDigit(r) {
289 return false
290 }
291 }
292 return true
293}
294
295func isAllBinaryDigits(s string) bool {
296 for _, r := range s {

Callers 2

tryParseIntFunction · 0.85
parseFloatStringFunction · 0.85

Calls 1

IsDigitFunction · 0.92

Tested by

no test coverage detected