Skip to main content

array_copy_unique

array_copy_unique(source, source_position, destination, destination_position, length) ⇒ number

Copy data from one array to another if they are not present in the destination array

Kind: global function
Returns: number - unique addition count

ParamTypeDescription
sourceArray.<T>The source array
source_positionnumberStarting position where to copy from inside the source array
destinationArray.<T>The destination array
destination_positionnumberStarting position where to copy to inside the destination array
lengthnumberHow many elements should be copied