Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
as T[]
assertions with ?? []
- `as` assertions intended to exclude an empty/nullable type can be replaced by a nullish coalescing operator converting nullable values into an acceptable empty value that doesn't pollute the variable's type signature. - TODO: document and expound in MetaMask/contributor-docs#47
- Loading branch information