Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const returnUrl = () => {
- for (let i = 0; i <= 20; i++) {
- const x = `${obrazki[Math.floor(Math.random()*obrazki.length) + 0]}`;
- random.push(x);
- if (random.filter(item => item == x).length < 3) {
- return `url(${x})`;
- } else {
- console.log('x');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement