How to check with Match.Option() for any type?

I want to check with Mathch.option() for any type.

check(data, {obj1: Match.Optional()}); // don't work

Please help me.

Have you tried:

check(data, {obj1: Match.Optional(Match.Any)});

Match.Optional always needs an argument.

1 Like

Very thanks, it work fine.