Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

This API is combined two arrays using an arithmetic operation. Each array element is combined separately.

Parameters
  1. Operation (string) - "ADD", "SUB", "DIV", or "MULT"
  2. Array
  3. 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]
  • No labels