Skip to content

Files

Latest commit

ff7aad4 · Sep 22, 2024

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 24, 2022
Sep 22, 2024
Jul 24, 2022

@nevware21/ts-utils

Common JavaScript/TypeScript helper functions for better minification

GitHub Workflow Status (main) codecov npm version downloads downloads

Description

This is a collection of general JavaScript functions (written in and for TypeScript) to aid with removing code duplication to assist with minification, the provided functions are expected to only rarely be included in their namespaced environment.

Support for standard JavaScript functions (ES5+) that are not support in all environments will be backed by internal polyfill implementations when not available. All of the polyfill functions are tested against the standard native implementations for node, browser and web-worker to ensure compatibility.

Documentation

Documentation generated from source code via typedoc

Some polyfills are provided for simple backward compatability to enable the utility functions in older environments (such as ES3 / IE8), you don't have to use or include the provided polyfils (AND they are NOT exported as part of the main module). If you need them you will need to import the "polyfill" file directly or host and load the provided bundle/ts-polyfills-utils.min.js or provide your own alternatives.