# hoff

> A collection of higher order functions you may find useful

Latest version **1.3.1** (published 2015-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install hoff
pnpm add hoff
yarn add hoff
bun add hoff
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2015-09-07 |
| First published | 2015-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vinnie Garcia |
| Maintainers | vinniegarcia |
| Keywords | higher order functions, HOF, functional programming, functions, collections, es6 |

## Links

- npm: https://www.npmjs.com/package/hoff
- Repository: https://github.com/vinniegarcia/hoff
- Issues: https://github.com/vinniegarcia/hoff/issues
- npm.io page: https://npm.io/package/hoff

## Recent versions

- 1.3.1 (latest) — 2015-09-07
- 1.1.1 — 2015-09-02
- 1.1.0 — 2015-09-02
- 1.0.0 — 2015-09-02

## README

# hoff - Higher Order Function File
[![npm version](https://badge.fury.io/js/hoff.svg)](http://badge.fury.io/js/hoff)
[![travis build information](https://api.travis-ci.org/vinniegarcia/hoff.svg)](https://travis-ci.org/vinniegarcia/hoff)
[![Coverage Status](https://coveralls.io/repos/vinniegarcia/hoff/badge.svg?branch=master)](https://coveralls.io/r/vinniegarcia/hoff?branch=master)

![hoff](http://i.giphy.com/yoJC2KGg8HRgZ2QLbW.gif)

## Overview

Hoff is a collection of higher order functions. I don't really have a goal here other than to show that these high-level functions are really easy to write in ES6. And I thought the name `hoff` would be cool for a library of HOFs so here it is.

## Functions

- `compose` - wraps functions `f(x)` and `g(x)` such that `g(f(x))`.
- `sequence` - wraps functions `f(x)` and `g(x)` such that `f(g(x))`.
- `partial` - partially applies a function `f` with the `arguments` given and returns a function that waits for the remaining arguments.
- `curry` - will return functions until the number of arguments given matches or exceeds the number of arguments in function `f`, then returns the value of the function's execution.
- `identity` - returns a function that returns a stored value. Nothing fancy.
- `not` - returns a function that returns the negation of the function invocation.
- `partition` - Splits an array in two based on a `predicate` function: `[elementsThatMatch, elementsThatDontMatch]`.

## You should write more functions to do __________.

You're absolutely right! [File an issue](https://github.com/vinniegarcia/hoff/issues)!

---
_Source: https://npm.io/package/hoff · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
