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

Function isAllBinaryDigits

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

Source from the content-addressed store, hash-verified

293}
294
295func isAllBinaryDigits(s string) bool {
296 for _, r := range s {
297 if r != '0' && r != '1' {
298 return false
299 }
300 }
301 return true
302}
303
304func isAllOctalDigits(s string) bool {
305 for _, r := range s {

Callers 1

tryParseIntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected