1 parent 19720b6 commit acc5236Copy full SHA for acc5236
1 file changed
packages/tal-stdlib/src/functions/core.ts
@@ -237,14 +237,7 @@ export const default$ = defineFunction3(
237
['T'],
238
typeGenericPlaceholder('T')
239
),
240
- (_ctx, _kwargs, args) => {
241
- for (let arg of args) {
242
- if (arg != null) {
243
- return arg;
244
- }
245
246
- return null;
247
- },
+ (_ctx, { value, orElse }) => value ?? orElse,
248
undefined,
249
{
250
description: 'Returns the first non null value',
0 commit comments