CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.2 (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()