comparray
Node Module for comparing arrays
Syntax
comparray(array1, array2[, options])
array1, array2
Arrays to compare.
options (optional)
Options for the comparision.
Output
When used without the options argument the module will return true
if the two arrays are the same.
Optionally, returns an array determined by the options argument.
Usage
Installation
$ npm install comparray
Basic Example
var comparray = ; var array1 = 0 1 2 3 ;var array2 = 0 1 2 3 ; var result = ; // result will be true array2; var result2 = ; // result2 will be false
Example using options
var comparray = ; var array1 = 0 1 2 3 ;var array2 = 0 1 ; var result = ; // result will be [ 2, 3 ] var result2 = ; // result2 will be [ 0, 1 ] var result3 = ; // result3 will be 0.5