Functiondojo.data.api.Read.hasAttribute

dojo.require("dojo.data.api.Read");
defined in dojo/data/api/Read.js

Returns true if the given item has a value for the given attribute.

Usage

function (item, attribute) (view source)
parametertypedescription
item The item to access attributes on.
attribute The attribute to access represented as a string.

Examples

Example 1

var trueOrFalse = store.hasAttribute(kermit, "color");