Skip to content

Commit 95f72de

Browse files
committed
Minor fix and docs update
1 parent dc47803 commit 95f72de

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ have the 'name'property will be returned.
5050
If the wrapper is set to false, then an array of only the values of the property will be returned. For the above sample JSON
5151
["User One", "User Two", "User Three"] would be returned.
5252

53-
* value (optional, default is ""): An optional value passed to be matched with the value of the matched property value.
53+
* value (optional): An optional value passed in as a string (for a single value match) or as an array to check the matched property value against multiple values.
5454

5555
* checkContains (optional, default is false): Setting this option to true will check if the matched property's value contains the passed in value. However, passing a value becomes mandatory for this to work.
5656
This option will be considered only if it is true and startsWith is not set to true.

src/filterJSON.plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
};
5858

5959
if(config.value) {
60-
var valueArray = config.value.length ? config.value : [config.value],
60+
var valueArray = $.isArray(config.value) ? config.value : [config.value],
6161
internalConfig = {},
6262
type = Object.prototype.toString.call( j ),
6363
innerComparo = function(type, originalValue, valueToCompare) {

src/filterJSON.plugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)