contains

IMD.contains(key)

Returns true if the cache contains a value with the specified key. Otherwise returns false.

Paramaters
The method has the following parameters:

ParametersDescription
keyKey for which to check if the value is stored in the cache.
Example
IMD.put("newTempPassword", "123456");

console.log(IMD.contains("newTempPassword"));
console.log(IMD.contains("anotherPassword"));
true
false