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
| Кеширование в NextJs - https://nextjs.org/docs/app/guides/caching#data-cache | |
| nodejs/undici - https://github.com/nodejs/undici?tab=readme-ov-file#using-cache-interceptor | |
| DataLayer - https://github.com/uniksssss/data-storage-system/tree/dev/src/domain | |
| На правах рекламы, мой тг канал - https://t.me/coaled_frontender |
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
| function isGeolocationSupported() { | |
| return !!("geolocation" in navigator); | |
| } | |
| function isDragAndDropSupported() { | |
| return !!Modernizr.draganddrop; | |
| } | |
| function isFlexSupported() { | |
| const testElem = document.createElement("div"); |
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
| /** | |
| * Find last entry of an element that matches predicate | |
| * @description O(n) | |
| * @param {Array} array | |
| * @param {Function} predicate | |
| * @returns Latest element that matches predicate or null if none found | |
| */ | |
| export const lastArrayEntry = (array = [], predicate = () => false) => { | |
| if (!Array.isArray(array)) throw new Error('lastArrayEntry - array is not a type of Array'); | |
| if (!predicate || typeof predicate !== 'function') throw new Error('lastArrayEntry - predicate is not a function'); |
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
| import { CustomError, StatusCode } from '../error'; | |
| /** NOTE: Now it is not actually used */ | |
| export interface IDebugAssertOptions { | |
| log?: boolean | |
| throw?: boolean; | |
| failOnUnhandledError?: boolean; | |
| } |