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
(() => { | |
'use strict'; | |
console.clear(); | |
const _fetch = url => { // mock fetch api as _fetch to simulate service call | |
const page = new URL(url).searchParams.get('page'); | |
return Promise.resolve({ | |
json() { | |
return { |