@bnidev/js-utils
    Preparing search index...

      @bnidev/js-utils

      Array

      Utility functions for working with arrays, including flattening, filtering, and more.

      chunkArray
      compactArray
      differenceArray
      flattenArray
      intersectionArray
      shuffleArray
      uniqueArray

      Async

      Utility functions for handling asynchronous operations, such as promises, async/await, and concurrency control.

      retryAsyncFn
      timeoutAsyncFn
      wait

      DOM

      Utility functions for working with the Document Object Model (DOM), including element selection, manipulation, and event handling.

      LoadModulesOptions
      focusElement
      getElementDimensions
      getFocusableElements
      isElementInViewport
      loadModules
      onElementResize
      onOrientationChange
      onResize
      onWindowResize
      scrollToElementAfterRender
      toggleInertAround
      toggleScrollLock
      waitForElementRemoved
      waitForVisibleElement

      Math

      DistanceUnit
      degreesToRadians
      distance
      haversineDistance
      pointInCircle
      radiansToDegrees

      Object

      Utility functions for working with objects, including deep cloning, merging, and property manipulation.

      deepClone
      getNestedValue
      mapValues
      omit
      pick

      Sanitize

      Utility functions for sanitizing and validating data, such as JSON, HTML, and URLs, to prevent security issues like XSS and injection attacks.

      sanitizeHtml
      sanitizeJson
      sanitizeUrl

      String

      Utility functions for string manipulation, including formatting, parsing, and validation.

      capitalize
      escapeHtml
      stripHtmlTags
      truncate

      Timing

      Utility functions for managing timing-related tasks, such as throttling, debouncing, and timeouts.

      IntervalFn
      debounceFn
      everyNthCall
      throttleFn

      Validation

      Utility functions for validating data types, formats, and structures, including checks for equality, URLs, and more.

      isEmail
      isEqual
      isUrl