|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
490 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /**
|
|---|
| 2 | * This function is like
|
|---|
| 3 | * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|---|
| 4 | * except that it includes inherited enumerable properties.
|
|---|
| 5 | *
|
|---|
| 6 | * @private
|
|---|
| 7 | * @param {Object} object The object to query.
|
|---|
| 8 | * @returns {Array} Returns the array of property names.
|
|---|
| 9 | */
|
|---|
| 10 | function nativeKeysIn(object) {
|
|---|
| 11 | var result = [];
|
|---|
| 12 | if (object != null) {
|
|---|
| 13 | for (var key in Object(object)) {
|
|---|
| 14 | result.push(key);
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
| 17 | return result;
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | module.exports = nativeKeysIn;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.