Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Perform array operation.This API is provided to add two arrays together, by element.

Parameters
  1. Operation (string) - "ADD", "SUB", "DIV", "MUL" and "MULT"
  2. Array
  3. Array
Return Value

This function will return a JavaScript array.

Example
Code Block
languagejavascript
var numbersA = [1, 2, 3, 4];
var numbersB = [9, 8, 7, 6];
 
var result = pjs.arrayOp('ADD', numbersA, numbersB);
//result = [10, 10, 10, 10]