CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.2 (changelog, source)
Search

Member predicate DataFlow::InvokeNode::getASpreadArgument

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

Examples:

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()