newtype
v0.0.18
Published
A TypeScript library packed with handy functions designed to accelerate development across different platforms.
Downloads
19
Maintainers
Readme
newtype
newtype is a comprehensive TypeScript library designed to streamline common programming tasks. This library offers a rich set of utilities spread across multiple domains such as arrays, strings, mathematics, dates, and system operations.
Installation
Install newtype using npm:
npm install newtype
Or using yarn:
yarn add newtype
Or using pnpm:
pnpm add newtype
Modules
Explore detailed documentation for each module:
Array
- all
- any
- bubbleSort
- chunk
- compact
- heapSort
- insertionSort
- intersection
- mergeSort
- partition
- permutations
- quickSort
- range
- sample
- selectionSort
- shuffle
- timSort
- unique
Core
- buildUrl
- createCounter
- isArray
- isBigInt
- isBoolean
- isDate
- isError
- isFloat
- isFunction
- isInteger
- isNull
- isNumber
- isObject
- isString
- isSymbol
- isUndefined
- memoize
- parseUrl
- retry
- scheduler
- sleep
- throttle
- toType
Date
Math
- nCr
- nPr
- binomial
- clamp
- factorial
- gcd
- hypergeometric
- iqr
- lcm
- lerp
- mean
- median
- mode
- poisson
- q1
- q2
- q3
- q4
- randomInt
- rotateMatrix
- std
- sum
- variance
String
System
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change. Ensure to update tests as appropriate.
License
This project is licensed under the MIT License.