Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utils JS

License Version

A comprehensive JavaScript utility library with TypeScript support.

Installation

npm install utils-js

Usage

import { debounce, deepClone, isEmpty } from 'utils-js';

const debounced = debounce(() => console.log('Called'), 300);
const cloned = deepClone({ a: 1, b: { c: 2 } });
isEmpty([]); // true

API

debounce(fn, wait, options?)

Creates a debounced function.

throttle(fn, limit)

Creates a throttled function.

deepClone(obj)

Deep clones an object or array.

isEmpty(value)

Checks if value is empty.

randomBetween(min, max)

Returns random number between min and max.

Testing

npm test

About

Utils Js - project built with TypeScript.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages