Thank you for your reply.
I’ve seen your reply and tried this “.shuffle(collection)".
But i don’t know how to use ".shuffle(collection)” on *.ts
this “__.shuffle(collection)” is *.js .
so please anyone knows how can i use on *.ts
I am not sure, if I understood you wright. ts is transpilled into js. So there should no problem.
Have you installed underscore probablly?.
Install it at command window with:
npm i underscore --save
Get get more help from ide install the types like:
npm i @types/underscore --save
Next thing is to import in *.ts file where you want to use it like: import _ from 'underscore';
now you should used it in your *.ts like:
let myshuffeldarray = _.shuffle(myarray);
Hope it is not faulty, maybe someone who use it actually could correct it.