Array from method can be called with argument items and optional arguments mapfn and thisArg.
Array.from(items, mapfn, thisArg);
The following simple example demonstrate crating new Array using mapfn with multiply logic inside for each items value.
Array.from('123', (item, index) => item * 2); // [2, 4, 6];
What is the third argument? Please give me an example which will showing the case when i should use thisArg.