Closure Library API Documentation
Go to class or file:
reflect.js
No description.
Useful links
Source Code
Git
File Location
/goog/reflect/reflect.js
Public
Protected
Private
Global Functions
goog.reflect.
canAccessProperty
(
obj
,
prop
)
⇒
boolean
Check if a property can be accessed without throwing an exception.
Arguments:
obj
:
Object
The owner of the property.
prop
:
string
The property name.
Returns:
boolean
Whether the property is accessible. Will also return true if obj is null.
code »
goog.reflect.
object
(
type
,
object
)
⇒
Object
Syntax for object literal casts.
Arguments:
type
:
!
Function
Type to cast to.
object
:
Object
Object literal to cast.
Returns:
Object
The object literal.
code »
Directory reflect
File Reference