undefined
from function call12export const store_username = writable(undefined);
13export const store_userid = writable(undefined);
14export const store_search_input = writable(undefined);
15export const store_user_role = writable(undefined);
undefined
from function call11export const store_token = writable(undefined);
12export const store_username = writable(undefined);
13export const store_userid = writable(undefined);
14export const store_search_input = writable(undefined);15export const store_user_role = writable(undefined);
undefined
from function call10
11export const store_token = writable(undefined);
12export const store_username = writable(undefined);
13export const store_userid = writable(undefined);14export const store_search_input = writable(undefined);
15export const store_user_role = writable(undefined);
undefined
from function call 9} */
10
11export const store_token = writable(undefined);
12export const store_username = writable(undefined);13export const store_userid = writable(undefined);
14export const store_search_input = writable(undefined);
15export const store_user_role = writable(undefined);
undefined
from function call 8 await goto("/login");
9} */
10
11export const store_token = writable(undefined);12export const store_username = writable(undefined);
13export const store_userid = writable(undefined);
14export const store_search_input = writable(undefined);
When an argument is omitted from a function call, it will default to undefined
.
It is therefore redundant to explicitly pass an undefined
literal as the last argument.
function hasOptionalParam(a: number, b?: number) {
// ...
}
hasOptionalParam(1, undefined)
function hasOptionalParam(a: number, b?: number) {
// ...
}
hasOptionalParam(1)
hasOptionalParam(1, 2)