# max-component

> Max value utility

Latest version **1.0.0** (published 2012-11-28) · 0 weekly downloads

## Install

```sh
npm install max-component
pnpm add max-component
yarn add max-component
bun add max-component
```

## 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.0.0 |
| Published | 2012-11-28 |
| First published | 2012-11-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tjholowaychuk |

## Links

- npm: https://www.npmjs.com/package/max-component
- npm.io page: https://npm.io/package/max-component

## Dependencies (1)

- [to-function](https://npm.io/package/to-function.md) *

## Recent versions

- 1.0.0 (latest) — 2012-11-28
- 0.0.1 — 2012-11-13

## README

# max

  Max value utility

## Installation

    $ component install component/max

## API

### max(array)

  Return the max value in `array`:

```js
max([1,5,6,1,2,0])
```

### max(array, fn)

  Max value in `array` with callback `fn(val, i)`:

```js
var age = max(users, function(u){ return u.age })
```

### max(array, string)

  Max value in `array` with the given property `string`:

```js
var age = max(users, 'age')
```

# License

  MIT

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