UNPKG

amos-tool

Version:

amos ui tool

10 lines (8 loc) 339 B
"use strict"; var utils = require("./utils"), isEnumerable = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable); module.exports = Object.values ? Object.values : function(e) { if (!utils.isObject(e)) return []; var t = []; for (var r in e) utils.has(e, r) && isEnumerable(e, r) && t.push(e[r]); return t; };