Skip to content

Commit 0d62e34

Browse files
Document Object.keys as a polyfill.
1 parent 4f00c9e commit 0d62e34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/prototype/lang/object.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@
313313
* prescribe an enumeration order. Sort the resulting array if you wish to
314314
* normalize the order of the object keys.
315315
*
316+
* `Object.keys` acts as an ECMAScript 5 [polyfill](http://remysharp.com/2010/10/08/what-is-a-polyfill/).
317+
* It is only defined if not already present in the user's browser, and it
318+
* is meant to behave like the native version as much as possible. Consult
319+
* the [ES5 specification](http://es5.github.com/#x15.2.3.14) for more
320+
* information.
321+
*
316322
* ##### Examples
317323
*
318324
* Object.keys();

0 commit comments

Comments
 (0)