Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/musiur/opulib
My first ever node module package. I have added sum array manipulating functions. Sooner I will add more function with latest version. This will be my own Lodash library.
https://github.com/musiur/opulib
javascript nodejs npm
Last synced: 5 days ago
JSON representation
My first ever node module package. I have added sum array manipulating functions. Sooner I will add more function with latest version. This will be my own Lodash library.
- Host: GitHub
- URL: https://github.com/musiur/opulib
- Owner: musiur
- License: mit
- Created: 2022-03-15T18:35:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T18:49:01.000Z (over 2 years ago)
- Last Synced: 2024-10-14T13:55:55.814Z (about 1 month ago)
- Topics: javascript, nodejs, npm
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/opulib
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Opulib
Opulib is a pure javascript methods/functions library
These methods can be used in daily worksIn order to install the library/package run the command below
```
npm install opulib --saveor,
yarn add opulib --save
```### Code example
```
import { arrayMethods } from "opulib";const { eraseAt, insertAt} = arrayMethods;
const testArr = [1, 2, 3, 4, 5];
// we have two parameter: array, index
const erased = eraseAt(testArr, 2);// we have three parameter: array, index, value
const inserted = insertAt(erased, 2, 3);console.log("Test Array: ", testArr);
// we have removed 3 from testArr at index of 2
console.log("Erased: ", erased);// we have added 3 into testArr at index of 2
console.log("Inserted: ", inserted);```
Thank you.