|
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:
416 bytes
|
| Line | |
|---|
| 1 | import isObject from './isObject.js';
|
|---|
| 2 | import { hasEnumBug } from './_setup.js';
|
|---|
| 3 | import collectNonEnumProps from './_collectNonEnumProps.js';
|
|---|
| 4 |
|
|---|
| 5 | // Retrieve all the enumerable property names of an object.
|
|---|
| 6 | export default function allKeys(obj) {
|
|---|
| 7 | if (!isObject(obj)) return [];
|
|---|
| 8 | var keys = [];
|
|---|
| 9 | for (var key in obj) keys.push(key);
|
|---|
| 10 | // Ahem, IE < 9.
|
|---|
| 11 | if (hasEnumBug) collectNonEnumProps(obj, keys);
|
|---|
| 12 | return keys;
|
|---|
| 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.