This repository was archived by the owner on Jun 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
$.median()
Arthur Guiot edited this page Jul 13, 2017
·
2 revisions
This function is made to return the median (see the Wikipedia page for more info) of a list of numbers. So, let's take an example to see what the function will return to us:
[477, 360, 869, 334, 541]
// |
// v
477As I said, you only need to give it a list of numbers, so to do what I just showed you, you'll need to write this:
$.median([477, 360, 869, 334, 541]) // 477Don't hesitate to ask your questions
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()+$.target()) - Developing for DisplayJS
-
$.select()- Text related
- If...else
$.xss()$.repeat()$.custom()$.live()$.load()$.on()$.onEvent()$.ready()- Scroll API
$.all()$.clone()$.is()$.valEmpty()$.remove()$.show()&$.hide()$.ajax()- Class Related
$.css()$.getStyle()- Fade effects
$.extend()$.dynamic()$.parent()- Elements-Nodes
$.component()$.time_ago()$.copy()$.then()$.sleep()$.getProp()