Skip to content

Commit

Permalink
Document Object.keys as a polyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Jun 5, 2012
1 parent 4f00c9e commit 0d62e34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/prototype/lang/object.js
Expand Up @@ -313,6 +313,12 @@
* prescribe an enumeration order. Sort the resulting array if you wish to
* normalize the order of the object keys.
*
* `Object.keys` acts as an ECMAScript 5 [polyfill](http://remysharp.com/2010/10/08/what-is-a-polyfill/).
* It is only defined if not already present in the user's browser, and it
* is meant to behave like the native version as much as possible. Consult
* the [ES5 specification](http://es5.github.com/#x15.2.3.14) for more
* information.
*
* ##### Examples
*
* Object.keys();
Expand Down

0 comments on commit 0d62e34

Please sign in to comment.