An open API service indexing awesome lists of open source software.

https://github.com/andreapontrandolfo/ramda-addons

This package provides an extra set of common utility functions when using Ramda.js
https://github.com/andreapontrandolfo/ramda-addons

javascript jest ramda typescript

Last synced: about 2 months ago
JSON representation

This package provides an extra set of common utility functions when using Ramda.js

Awesome Lists containing this project

README

          


Ramda Addons




Version


Documentation


Maintenance


License: MIT

> This package provides an extra set of common utility functions when using Ramda.js

### 🏠 [npm](https://www.npmjs.com/package/ramda-addons)

⚠️ **This package requires that you already have [Ramda.js](https://github.com/ramda/ramda) installed as a dependency!**

## Install

```sh
yarn install
```

## Usage

```sh
yarn start
```

## Available functions

- `getMatches(sourceData: string[], searchedValue: string)` return all found matches in the list
- `getTotalOfValues(object)` return the total amount of values in a object, including the values nested in arrays
- `hasData(element: any)` check if the object exist and contains some values
- `normalizeString(string)` lower a given string and remove whitespaces

## Author

👤 **Andrea Pontrandolfo**

* Github: [@AndreaPontrandolfo](https://github.com/AndreaPontrandolfo)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/AndreaPontrandolfo/ramda-addons/issues). You can also take a look at the [contributing guide](https://github.com/AndreaPontrandolfo/ramda-addons/blob/master/CONTRIBUTING.md).

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2020 [Andrea Pontrandolfo](https://github.com/AndreaPontrandolfo).

This project is [MIT](https://github.com/AndreaPontrandolfo/ramda-addons/blob/master/LICENSE) licensed.

***
## Acknowledgements
- project boostrapped with [tsdx](https://github.com/formium/tsdx)
- published on npm with [np](https://github.com/sindresorhus/np)
- readme generated with [readme-md-generator](https://github.com/kefranabg/readme-md-generator)