No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit hace 3 años
..
.github/workflows First Commit hace 3 años
test First Commit hace 3 años
.DS_Store First Commit hace 3 años
.eslintrc First Commit hace 3 años
.travis.yml First Commit hace 3 años
CHANGELOG.md First Commit hace 3 años
LICENSE First Commit hace 3 años
README.md First Commit hace 3 años
auto.js First Commit hace 3 años
implementation.js First Commit hace 3 años
index.js First Commit hace 3 años
package.json First Commit hace 3 años
polyfill.js First Commit hace 3 años
shim.js First Commit hace 3 años

README.md

object.values Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

An ES2017 spec-compliant Object.values shim. Invoke its “shim” method to shim Object.values if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Most common usage:

var assert = require('assert');
var values = require('object.values');

var obj = { a: 1, b: 2, c: 3 };
var expected = [1, 2, 3];

if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
	// for environments with Symbol support
	var sym = Symbol();
	obj[sym] = 4;
	obj.d = sym;
	expected.push(sym);
}

assert.deepEqual(values(obj), expected);

if (!Object.values) {
	values.shim();
}

assert.deepEqual(Object.values(obj), expected);

Tests

Simply clone the repo, npm install, and run npm test