Properties

Methods

()

Returns a new object that uses obj as its prototype. This method wraps the
native ES5 Object.create() method if available, but doesn't currently
pass through Object.create()'s second argument (properties) in order to
ensure compatibility with older browsers.

Parameters:

Returns:

keys

Returns an array containing the object's enumerable keys. Does not include
prototype keys or non-enumerable keys.

Note that keys are returned in enumeration order (that is, in the same order
that they would be enumerated by a for-in loop), which may not be the same
as the order in which they were defined.

This method is an alias for the native ES5 Object.keys() method if
available and non-buggy. The Opera 11.50 and Android 2.3.x versions of
Object.keys() have an inconsistency as they consider prototype to be
enumerable, so a non-native shim is used to rectify the difference.