CodeQL library for JavaScript
codeql/javascript-all 0.7.4 ( changelog , source )

Member predicate DataFlow :: InvokeNode :: getASpreadArgument

Gets a data flow node corresponding to an array of values being passed as individual arguments to this invocation.


x.push(...args);                     // 'args' is a spread argument
x.push(x, ...args, y, ...more);      // 'args' and 'more' are a spread arguments
Array.prototype.push.apply(x, args); // 'args' is a spread argument


Node getASpreadArgument ( )