Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

object.values

Package Overview
Dependencies
3
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    object.values

ES2017 spec-compliant Object.values shim.


Version published
Maintainers
1
Install size
1.74 MB
Created

Changelog

Source

v1.1.4 - 2021-05-26

Commits

  • [meta] add auto-changelog 01ee3ac
  • [actions] use node/install instead of node/run; use codecov action f403cba
  • [readme] add actions and codecov badges bee5cd2
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud; switch array-map for array.prototype.map 8c49dbe
  • [Refactor] propertyIsEnumerable checks own-ness; remove has 3cb48cf
  • [actions] update workflows eb1d757
  • [Dev Deps] update eslint, tape 0abdb2d
  • [Tests] increase coverage 8ca19a3
  • [meta] use prepublishOnly script for npm 7+ 88998c8
  • [Deps] update es-abstract 12515ab
  • [Deps] update es-abstract 3083ce7
  • [meta] gitignore coverage output 7aef22b

Readme

Source

object.values Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Keywords

FAQs

Last updated on 26 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc