mirror of https://github.com/zulip/zulip.git
ee26590528
This implements a helper that parses an array that possibly contains falsy elements into undefined when it does have at least one falsy element, or returns a type narrowed array of non-undefined elements. We use this in people.js, which achieves the same check we have using "arr.every(Boolean)", but with type safety since it is not based on validation. Signed-off-by: Zixuan James Li <p359101898@gmail.com> |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |