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

Last updated