Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

object.values

Package Overview
Dependencies
3
Maintainers
1
Versions
11
Issues
File Explorer

Advanced tools

object.values

ES2017 spec-compliant Object.values shim.

    1.1.5latest

Version published
Maintainers
1
Weekly downloads
19,544,249
decreased by-0.36%

Weekly downloads

Changelog

Source

v1.1.5 - 2021-10-03

Commits

  • [Dev Deps] update eslint, @ljharb/eslint-config, @es-shims/api, tape c397925
  • [Deps] update es-abstract f98d0da
  • [Robustness] use a call-bound Array.prototype.push 72a3213
  • [meta] npmignore coverage output 3b0433f

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

What is object.values?

ES2017 spec-compliant Object.values shim.

Is object.values popular?

The npm package object.values receives a total of 18,719,343 weekly downloads. As such, object.values popularity was classified as popular.

Is object.values well maintained?

We found that object.values demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 04 Oct 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc