Descructuring in function parameters instead of let statements