webhook-action/node_modules/object.values/implementation.js

19 lines
491 B
JavaScript
Raw Normal View History

'use strict';
2022-11-10 10:43:16 +00:00
var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
var callBound = require('call-bind/callBound');
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
2022-11-10 10:43:16 +00:00
var $push = callBound('Array.prototype.push');
module.exports = function values(O) {
var obj = RequireObjectCoercible(O);
var vals = [];
for (var key in obj) {
2022-11-10 10:43:16 +00:00
if ($isEnumerable(obj, key)) { // checks own-ness as well
$push(vals, obj[key]);
}
}
return vals;
};