Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
295
func
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
304
func
isAllOctalDigits(s string) bool {
305
for
_, r :=
range
s {
Callers
1
tryParseInt
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected