# get-average-property

> A module to get average for a value in an array of objects.

Latest version **0.0.0** (published 2018-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-average-property
pnpm add get-average-property
yarn add get-average-property
bun add get-average-property
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2018-03-04 |
| First published | 2018-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Cédric JUNG |
| Maintainers | cedced19 |
| Keywords | average, mean, arithmetic |

## Links

- npm: https://www.npmjs.com/package/get-average-property
- Repository: https://github.com/cedced19/get-average-property
- Homepage: https://github.com/cedced19/get-average-property#readme
- Issues: https://github.com/cedced19/get-average-property/issues
- npm.io page: https://npm.io/package/get-average-property

## Recent versions

- 0.0.0 (latest) — 2018-03-04

## README

# get-average-property
A module to get average for a value in an array of objects.

[![Build Status](https://travis-ci.org/cedced19/average-property.svg?branch=master)](https://travis-ci.org/cedced19/average-property)

## Usage
```javascript
var getAverageProperty = require('get-average-property');
getAverageProperty(data, value);
```
where `data` is an array of objects, and `value` is a property.

## Example

```javascript
var array = [ 
    { lowest: 21.4, highest: 26.8 },
    { lowest: 23.3, highest: 24.7 },
    { lowest: 21.3, highest: 23.6 } 
];
getAverageProperty(array, 'lowest');
```

It will return: `66`

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