open-index/open-npm huggingface dataset:
npm package: @rahulmawari/js-algorithms
Description: A package that is trying to implement all programming algorithms so that anyone can use them just by installing package and callinga function
Author: Rahul singh mawari
Latest version: 0.2.1

# js-algorithms
Don't need to write complex function anymore to do computation. js-algorithms is trying to imlement all possible complex algorthms in javascript.

# How to use
```
npm install  @rahulmawari/js-algorithms --save

const algorithms = require('@rahulmawari/js-algorithms')
```
**String**

 **countDuplicates**
 
 
    ```
    const result = algorithms.countDuplicates("efecferfhehf")
    ```
 
 
 **editDistance (Calculate edit distance of two string using wagner fischer algorithm)**
    
    ```
    
    const result = algorithms.editDistance('aassd','ssssd')
    
    ```
**Memoizer(Use memoizer utility to cache result of a function)**
  ```
  const result  = algorithms.memoizer(func);
  ```