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.
18 lines
638 B
18 lines
638 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var tslib_1 = require("tslib");
|
|
var each_1 = tslib_1.__importDefault(require("./each"));
|
|
var is_function_1 = tslib_1.__importDefault(require("./is-function"));
|
|
var keys = Object.keys
|
|
? function (obj) { return Object.keys(obj); }
|
|
: function (obj) {
|
|
var result = [];
|
|
(0, each_1.default)(obj, function (value, key) {
|
|
if (!((0, is_function_1.default)(obj) && key === 'prototype')) {
|
|
result.push(key);
|
|
}
|
|
});
|
|
return result;
|
|
};
|
|
exports.default = keys;
|
|
//# sourceMappingURL=keys.js.map
|