npm package: @slauva/arops
Description: A simple and lightweight library of utilities for working with arrays
Author: Slauva
Latest version: 0.1.11

<!-- PROJECT LOGO -->
<br />
<div align="center">
  <a href="https://github.com/Slauva/arops">
    <img src="./logo.svg" alt="Logo" width="80" height="80">
  </a>

  <h3 align="center">Arops</h3>

  <p align="center">
    A simple and lightweight library of utilities for working with arrays
    <br />
    <a href="https://slauva.github.io/arops/modules.html"><strong>Explore the docs »</strong></a>
    <br />
    <br />
    <a href="https://github.com/Slauva/arops/issues">Report Bug</a>
    ·
    <a href="https://github.com/Slauva/arops/issues">Request Feature</a>
  </p>
</div>

[![NPM Version][npm-image]][npm-url]
[![Downloads Stats][npm-downloads]][npm-url]
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]

<!-- DESCRIPTION -->

The **Arops** npm package is a simple and lightweight library designed to provide utility functions for efficient array manipulation. It includes a range of functionalities to perform common operations on arrays, helping developers manage and transform array data with ease. The library is designed to be easy to use, making it a great addition to any JavaScript or Node.js project that requires straightforward and effective handling of array-related tasks.

#### It provides:

- Toolbox to apply a basic math operations on array
- Comparison operations
- Statistic methods

<!-- INSTALLATION -->

## Installation

npm

```bash
npm i @slauva/arops
```

yarn

```bash
yarn add @slauva/arops
```

<!-- USAGE EXAMPLE -->

## Usage Example

```js
import { condition } from "@slauva/arops";

const array = [0, 1, 2, 3, 4, 3, 2, 1, 0];
const out = condition(array, "1 <= x, x < 3");

console.log(out);

>> [false, true, true, false, false, false, true, true, false]
```

```js
import { power, sqrt } from "@slauva/arops";

const array = [1, 2, 3, 4];
const out = power(array, 2);

console.log(out);

>> [1, 4, 9, 16]

const out_sqrt = sqrt(out);

console.log(out_sqrt);

>> [1, 2, 3, 4]
```

## Contributing

1. Fork it (<https://github.com/Slauva/arops/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'feat: Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[npm-image]: https://img.shields.io/npm/v/@slauva/arops.svg?style=for-the-badge
[npm-downloads]: https://img.shields.io/npm/dm/@slauva/arops.svg?style=for-the-badge
[npm-url]: https://www.npmjs.com/package/@slauva/arops
[contributors-shield]: https://img.shields.io/github/contributors/Slauva/arops.svg?style=for-the-badge
[contributors-url]: https://github.com/Slauva/arops/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/Slauva/arops.svg?style=for-the-badge
[forks-url]: https://github.com/Slauva/arops/forks
[stars-shield]: https://img.shields.io/github/stars/Slauva/arops.svg?style=for-the-badge
[stars-url]: https://github.com/Slauva/arops/stargazers
[issues-shield]: https://img.shields.io/github/issues/Slauva/arops.svg?style=for-the-badge
[issues-url]: https://github.com/Slauva/arops/issues
[license-shield]: https://img.shields.io/github/license/Slauva/arops.svg?style=for-the-badge
[license-url]: https://github.com/Slauva/arops/blob/main/LICENSE
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: http://www.linkedin.com/in/viacheslav-koshman-182056247