MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / IsNonNegativeNumber

Function IsNonNegativeNumber

examples/io/streams/modules/streams.js:3254–3260  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

3252// 8.3 Miscellaneous
3253
3254function IsNonNegativeNumber(v) {
3255 if (typeof(v) != "number")
3256 return false;
3257 if (isNaN(v))
3258 return false;
3259 return v >= 0;
3260}
3261
3262class TextDecoderStream extends TransformStream {
3263 #decoder;

Callers 3

CreateReadableStreamFunction · 0.85
CreateWritableStreamFunction · 0.85
EnqueueValueWithSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected