What is Parsnip-Kit?
Parsnip-Kit is a zero-dependency, multi-functional, modular JavaScript utility library that supports TypeScript.
It provides a wide range of utility functions covering type checking, arrays, objects, strings, functions, asynchronous operations, numbers, statistics, and random numbers, meeting most development needs and reducing boilerplate code in our applications while increasing maintainability.
Written using modern JavaScript APIs, Parsnip-Kit supports TypeScript types for all utility functions, offering developers a refreshing experience whether they are developing applications or reading the source code.
Overview
Here's an overview of the tool functions provided by Parsnip-Kit:
- Object: For manipulating JavaScript objects, such as cloneDeep, isEqual, getByPath.
- Array: For manipulating arrays, such as unique, intersection, lexSort and numberSort.
- Statistic: For descriptive statistics in JavaScript, including sum, maxItem and minItem.
- Number: For processing numbers, such as range, thousandSeparator and percent.
- Function: Functions for handling function parameters, returns, and logic, such as: debounce, throttle, combine and curry.
- Async: Focused on asynchronous process handling, such as concurrent, retry and asyncForEach.
- String: String tool functions, such as camelCase, snakeCase and htmlEncode.
- Typed: For checking the type of input parameters, including isPrimitive, isNanValue and getTypeTag.
- Random: Generates random data, including randomNumber, randomString and randomFromArray.