/ piacw.com / dev / final / node_modules / object.values /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]node_modules/2 years ago -  
[DIR]test/2 years ago -  
[TXT]CHANGELOG.md2 years ago1.7K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]LICENSE2 years ago1.1K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago2.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]auto.js2 years ago 36 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]implementation.js2 years ago468 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]index.js2 years ago335 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago3.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]polyfill.js2 years ago189 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]shim.js2 years ago314 0fb859dc fixed mobile overflwo options [كارل مبارك]
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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80