ts array undefined 除去

array.filter((i): i is Exclude<typeof i, undefined> => i !== undefined);