New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

median

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

median

a small module for node and browser to calculate median

0.0.2
latest
Source
npm
Version published
Weekly downloads
7K
-14.56%
Maintainers
1
Weekly downloads
 
Created
Source

Median

A small module for node and browser to calculate median.

Install

NPM

$ npm install median

or you can download the repo and use median.js

Usage

Node.js

var median = require('median')
var arr = [1, 15, 200, 30]
var value = median(arr)

console.log("median value is " + value)

Browser

var arr = [1, 15, 200, 30]
var value = window.median(arr)

console.log("median value is " + value)

Keywords

median

FAQs

Package last updated on 15 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts