Sha256: 53d26fc276aa0eb3c8900a083233dbe18eb27d254ac5195b6ae72aa689178034
Contents?: true
Size: 491 Bytes
Versions: 26
Compression:
Stored size: 491 Bytes
Contents
'use strict'; var RequireObjectCoercible = require('es-abstract/2023/RequireObjectCoercible'); var callBound = require('call-bind/callBound'); var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); var $push = callBound('Array.prototype.push'); module.exports = function values(O) { var obj = RequireObjectCoercible(O); var vals = []; for (var key in obj) { if ($isEnumerable(obj, key)) { // checks own-ness as well $push(vals, obj[key]); } } return vals; };
Version data entries
26 entries across 26 versions & 1 rubygems