Copy each listed key from args into target when its value is defined.
Unifies the "forward optional parameters into the request payload" pattern
used across the B2-native tool handlers — the one obvious way to do it,
instead of hand-rolling an if (args.x !== undefined) payload.x = args.x
chain (or an inline loop) in each handler.
Copy each listed key from
argsintotargetwhen its value is defined.Unifies the "forward optional parameters into the request payload" pattern used across the B2-native tool handlers — the one obvious way to do it, instead of hand-rolling an
if (args.x !== undefined) payload.x = args.xchain (or an inline loop) in each handler.