Object.hasOwnProperty

bool hasOwnProperty (String name)

Parameters

name The name of the property to check.

Description

Reports whether a given property is defined with an instance or within the prototype chain.