UNPKG

quarkle

Version:

quarkle is the JavaScript util library providing support of all data types and data structures.

101 lines (76 loc) 1.67 kB
## quarkle quarkle provides utility functions and classes to make the job easy for different operations. [![Version](https://img.shields.io/npm/v/quarkle)](https://www.npmjs.com/package/quarkle) [![Downloads](https://img.shields.io/npm/dm/quarkle)](https://www.npmjs.com/package/quarkle) ## Installation Using npm: ```bash npm i quarkle ``` ## Usage You can directly use these functions from the quarkle library. ```js copy import { reverseNumber } from "quarkle"; const number = 5698; reverseNumber(number); // Returns the result 8965 ``` Currently `number`, `string` and `array` data types are supported. Operations supported on the data types are: ### Number - Reverse Number - Prime Number - Palindrome Number - Factorial - Permutations - Combinations - Change Base ### String - Reverse String - Palindrome String - Get Words - String Count - Capitalize - Title Case ### Array - Minimum Array - Maximum Array - Array Product - Rotate Array - Mean - Median - Mode - Root Mean Square - Variance - Standard Deviation - Remove Duplicates - Histogram - Greatest Common Divisor (GCD) - Least Common Multiple (LCM) ### Matrix - Matrix Addition - Matrix Subtraction - Matrix Multiplication - Scalar Multiplication - Matrix Transpose - Matrix Determinant - Matrix Adjoint - Matrix Inverse - Matrix Flatten Also, `stack` and `queue` data structures are currently supported with following operations: ### Stack - Push - Pop - Peek - isFull - isEmpty - Length - Search ### Queue - Enqueue - Dequeue - isFull - isEmpty - Get Front - Get Rear - Length - Search You can check the whole documentation [here](https://quarkle-docs.vercel.app/ "quarkle library").