Functiondojo.data.api.Read.isItem

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

Returns true if something is an item and came from the store instance. Returns false if something is a literal, an item from another store instance, or is any object other than an item.

Usage

function (something) (view source)
parametertypedescription
something Can be anything.

Examples

Example 1

var yes = store.isItem(store.newItem());
var no  = store.isItem("green");