π§βπ»
Pinned Loading
-
Generator-based slot machine game #2
Generator-based slot machine game #2 1const getRandomInt = (range) => Math.floor(Math.random() * range);
23// Create an array of symbols for the slot machine
4const symbols = ['π', 'π', 'π', '7οΈβ£', 'π±'];
5 -
Generator-based slot machine game
Generator-based slot machine game 1const getRandomInt = (range) => Math.floor(Math.random() * range);
23// Create an array of symbols for the slot machine
4const symbols = ['π', 'π', 'π', '7οΈβ£', 'π±'];
5 -
Emoji fusion generators
Emoji fusion generators 1const emoji = require('emoji-name-map')
23// 1. Iterable object
4const impersonator = {
5genders: ['man', 'woman', 'adult'],
-
Generator function for paginating as...
Generator function for paginating async data 1// Mock data
2const fakePaginatedData = [
3{
4next: 'https://fake-api.com/cars?page=2',
5results: [
-
Async polling generator for streams
Async polling generator for streams 1// Wait utility
2const wait = (timeInMs) => {
3return new Promise((resolve) => {
4setTimeout(resolve, timeInMs);
5});
-
Async polling generator function wit...
Async polling generator function with stop condition 1const wait = (time) => {
2return new Promise((resolve) => {
3setTimeout(resolve, time);
4});
5};
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.