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

Version Path
immosquare-cleaner-0.1.11 node_modules/object.values/implementation.js
immosquare-cleaner-0.1.10 node_modules/object.values/implementation.js
immosquare-cleaner-0.1.9 node_modules/object.values/implementation.js
immosquare-cleaner-0.1.8 node_modules/object.values/implementation.js
immosquare-cleaner-0.1.7 node_modules/object.values/implementation.js
immosquare-cleaner-0.1.6 node_modules/object.values/implementation.js