pjs.arrayOp()
This API is combined two arrays using an arithmetic operation. Each array element is combined separately.
Parameters
Operation (string) - "ADD", "SUB", "DIV", or "MULT"
Array
Array
Return Value
A JavaScript array.
Example
var numbersA = [1, 2, 3, 4];
var numbersB = [9, 8, 7, 6];
var result = pjs.arrayOp("ADD", numbersA, numbersB); // result is [10, 10, 10, 10]
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!