1.14.0 • Published 7 months ago
quarkle v1.14.0
quarkle
quarkle provides utility functions and classes to make the job easy for different operations.
Installation
Using npm:
npm i quarkle
Usage
You can directly use these functions from the quarkle library.
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.