Skip to content

Instantly share code, notes, and snippets.

'😀','😁','😂','🤣','😄','😅','😛',
'😆','😉','😊','😋','😎','😍','😘',
'🥰','😗','😙','😚','🙂','🤗','🤩',
'🤔','🤨','😐','😑','😶','🙄','😏',
'😣','😥','😮','🤐','😯','😪','😫',
'😁','😂','🤣','😅','😛','😆','😉',
'😊','😋','😎','😍','😘','🥰','🤗',
'🤩','🤔','😶','🙄','😏','😣','😥',
'😮','🤐','😪','😫','🥱','😴','😌',
'🥱','😴','😌'
const PET_TYPES_MAP = {
cat: {
male: "Кот",
female: "Кошка",
freakale: undefined,
anyOther: undefined
},
rabbit: {
male: "Кролик",
female: "Крольчиха",

How to clean cache using Google Chrome?

An easy one

Using hot key: ctrl + shift R

Clearing network cache

  1. Open devtools via ctrl + shift + i
  2. Go to Network tab
  3. Tick ☑ Disable cache checkmark
  4. Hit Right Mouse Click on ↻ Refresh button at top-left corner of the browser
export function clear() {
return new Promise((resolve, reject) => {
try {
localStorage.clear();
resolve(null);
} catch (err) {
reject(err);
}
});
}
const inputVariations = types.maybe(
types.enumeration('InputVariations', [
'custom',
'text',
'date',
'textarea',
'switcher',
'select',
'select-radio',
'select-checkbox',
function flatten(array) {
const flattered = [];
array.forEach(item => {
if (Array.isArray(item)) {
flattered.push(...flatten(item));
} else {
flattered.push(item);
}
})
return flattered;