zulip/web
Zixuan James Li ee26590528 util: Implement a safer type narrowing helper for arrays.
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>
2023-03-16 10:47:12 -07:00
..
e2e-tests display_settings: Rename and update the 'language-time' section. 2023-03-09 16:12:45 -08:00
generated
html
images
shared eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
src util: Implement a safer type narrowing helper for arrays. 2023-03-16 10:47:12 -07:00
styles left_sidebar: Highlight inactive streams when narrowed to. 2023-03-15 16:17:24 -07:00
templates templates: Fix &nbsp; syntax. 2023-03-15 16:34:32 -07:00
tests people: Do not return undefined for is_cross_realm_email. 2023-03-16 10:47:12 -07:00
third css: Remove code elements from bootstrap.css. 2023-03-02 13:32:50 -08:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore
babel.config.js webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
debug-require-webpack-plugin.ts
debug-require.js
postcss.config.js webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
webpack.assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
webpack.config.ts webpack: Build a ZULIP_VERSION global constant into the built product. 2023-03-07 10:51:45 -08:00
webpack.dev-assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00