@geonet/array-deep-average

1.0.3 • Public • Published

@geonet/array-deep-average

Average all values in an array recursively

Usage

const arrayDeepAverage = require('@geonet/array-deep-average');

arrayDeepAverage( 1, 2, 3 ) // -> 2
arrayDeepAverage( [ 1, 2, 3 ] ) // -> 2
arrayDeepAverage( [ 1, [ 2, [ 3 ] ] ] ) // -> 2

Readme

Keywords

none

Package Sidebar

Install

npm i @geonet/array-deep-average

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.52 kB

Total Files

4

Last publish

Collaborators

  • codebuddha
  • putipong