Skip to content

Alexander-Logachev/Array.prototype.compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Array.prototype.compare

Compare 2 arrays

Regular - looking for the presence of all the elements in the array

var a = [1,4,2,2];
var b = [1,2,4];

a.compare(b); //false

Strict - compares items by position and type

var a = [1,2,4];
var b = [1,2,4];

a.compare(b,true); //true

About

Compare 2 arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors