-
Notifications
You must be signed in to change notification settings - Fork 57
$.multiply()
Arthur Guiot edited this page Jul 12, 2017
·
1 revision
This function is made to return the product of all numbers in an array, like that:
[1, 2, 3, 4, 5]
// |
// v
120
It's pretty similar to the $.sum()
function
This function will require 1 argument, which is the array
.
Let's do what I showed you before:
JS:
$.multiply($.arange(1,5,1)) // 120
Don'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()