Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

add

Adds all of the given numbers.

Accepts int and float.

  • If any floats are given, float is returned.
  • If no floats are given, int is returned.

Examples

add(1, 2, 3) // 5
[1, 2, 3].add($this...) // 5