ion-js icon indicating copy to clipboard operation
ion-js copied to clipboard

Need to remove all undefined behavior logic to throw early

Open wesboyt opened this issue 6 years ago • 1 comments

Replace with null values or refactor out.

wesboyt avatar Apr 09 '18 20:04 wesboyt

Impl shouldn't check (or rely upon) undefined. Consider use of undefined to be a bug; use null (or a value) instead.

Note that some APIs currently return undefined; update to return a value or null, if appropriate. E.g.:

  • Reader.next()

pbcornell avatar Jul 18 '19 22:07 pbcornell