1 | import each from './each';
|
2 | import isFunction from './is-function';
|
3 |
|
4 | const keys = Object.keys ? obj => Object.keys(obj) : obj => {
|
5 | const result = [];
|
6 | each(obj, (value, key) => {
|
7 | if (!(isFunction(obj) && key === 'prototype')) {
|
8 | result.push(key);
|
9 | }
|
10 | });
|
11 | return result;
|
12 | };
|
13 |
|
14 | export default keys;
|