This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export const pokemons = [ | |
| { | |
| "id": 1, | |
| "name": "bulbasaur", | |
| "types": [ | |
| "grass", | |
| "poison" | |
| ], | |
| "previewImageUrl": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/1.svg", | |
| "imageUrls": [ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| (1) – algorithmic task | |
| Task: | |
| Write a function that receives two sequences: A and B of integers and returns one sequence C. | |
| Sequence C should contain all elements from sequence A (maintaining the order) except those, that are present in sequence B p times, where p is a prime number. | |
| Example: | |
| A=[2,3,9,2,5,1,3,7,10] | |
| B=[2,1,3,4,3,10,6,6,1,7,10,10,10] | |
| C=[2,9,2,5,7,10] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // i like to use it when mocking things | |
| const generateID = () => '_' + Math.random().toString(36).substring(2, 9); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const fetch = require("node-fetch"); | |
| const cheerio = require("cheerio"); | |
| const LABEL = "TIMER"; | |
| console.time(LABEL); | |
| const URL = "https://demotywatory.pl/losuj"; | |
| const query = "img.demot"; | |
| const images = []; |