You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
352 B

import each from './each';
import isFunction from './is-function';
const keys = Object.keys
? (obj) => Object.keys(obj)
: (obj) => {
const result = [];
each(obj, (value, key) => {
if (!(isFunction(obj) && key === 'prototype')) {
result.push(key);
}
});
return result;
};
export default keys;