This is a TypeScript rest statement . In this case, this means that there can be any number of arguments of any type; the function will see them as an any array. (JavaScript recently received rest and distribution operators, as well as ES2015, but :any[] in your example tells us that it is TypeScript.)
eg:.
ngOnChanges('a', 42, null);
... will show
["a", 42, null]
in the console.
Here is a complete example ( live copy ):
function foo(...args:any[]) { console.log("args.length = " + args.length); args.forEach((arg:any, index:Number) => { console.log("args[" + index + "]: " + arg); }); } foo('a', 42, null);
exits
args.length = 3
args [0]: a
args [1]: 42
args [2]: null
source share