1.0.2 • Published 8 years ago

compare-array-of-strings v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

Compare an Array of Strings

Just install and then:

var compareArrayOfStrings = require('compare-array-of-strings');

Let's have some arrays of strings:

var one = ["one", "two", "three"],
	sameOne = ["one", "three", "two"],
	actuallyDifferent = ["one", "four", "three"];

Then, for example:

compareArrayOfStrings(one, sameOne)

Will return true

compareArrayOfStrings(one, actuallyDifferent)

Will return false

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago