8000 dominicusin.github.io/src/utils at main · dominicusin/dominicusin.github.io · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

utils

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

src/utils

Framework-free helper utilities. Pure where possible; no DOM-dependent globals.

  • helpers.js — debounce, throttle, generateId, getNestedValue, deepMerge, isObject, escapeHTML, formatDate, parseQueryParams, createElement, requestIdleCallback, loadScript/loadCSS, getDeviceInfo, getElementSelector, isInViewport, smoothScrollTo. Fully unit-tested (tests/unit/helpers.test.js).
  • storage.js — LocalStorage / SessionStorage safe wrappers with an in-memory fallback when localStorage/sessionStorage is unavailable. Tested (tests/unit/storage.test.js), including the fallback branch.

Layer: depends only on config.

0