1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| containsValue: function(/* item */ item,
/* attribute-name-string */ attribute,
/* anything */ value){
// summary:
// Returns true if the given *value* is one of the values that getValues()
// would return.
//
// item:
// The item to access values on.
// attribute:
// The attribute to access represented as a string.
// value:
// The value to match as a value for the attribute.
//
// exceptions:
// Throws an exception if *item* is not an item, or *attribute* is not a string
// example:
// | var trueOrFalse = store.containsValue(kermit, "color", "green");
... |
Partager