Append the values in array b to the array a.
the array to append to
the array to append values from
Remove an element from an array, if the array contains the element.
Extend an object with the properties of another
Shallow clone an object. Returns a new object instance with the same properties as the input instance.
Garbage free Array.splice(). Does not allocate a new array.
The array type to use for internal numeric computations throughout the library. Float32Array is used if it is available, but falls back on Array. If you want to set array type manually, inject it via the global variable P2_ARRAY_TYPE. See example below.