About Pi Downloads Documentation Plugins Developer Forum Issues

pi.util.IsHash

Summary

Finds whether a variable is a hash.

Syntax

pi.util.IsHash(value);

Usage Example

>>> pi.util.IsArray(window);
true
>>> pi.util.IsArray({ "name":"angeline", "surname":"jolie" });
true
>>> pi.util.IsArray([3,5,6]);
false
>>> pi.util.IsArray(document.body.attributes);
false