Minor improvement of editInboundObjectFn scriptlet

This commit is contained in:
Raymond Hill 2025-11-02 09:37:38 -05:00
parent 694e3f79c7
commit a93072533d
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -193,6 +193,7 @@ function editInboundObjectFn(
const argPos = parseInt(argPosRaw, 10);
if ( isNaN(argPos) ) { return; }
const getArgPos = args => {
if ( Array.isArray(args) === false ) { return; }
if ( argPos >= 0 ) {
if ( args.length <= argPos ) { return; }
return argPos;