🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

object-keys

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
o

object-keys

An Object.keys replacement, in case Object.keys is not available. From https://github.com/es-shims/es5-shim

1.1.1
latest
67

Supply Chain Security

100

Vulnerability

91

Quality

51

Maintenance

100

License

Socket optimized override available

Maintenance

Package can be replaced with a Socket optimized override.

Found 1 instance in 1 package

Version published
Weekly downloads
46M
3.15%
Maintainers
1
Weekly downloads
 
Created
Issues
0

What is object-keys?

The object-keys npm package is a utility that provides a shim for the Object.keys method, which returns an array of a given object's own enumerable property names. It is particularly useful for environments that do not support the native Object.keys method, such as older versions of JavaScript engines.

What are object-keys's main functionalities?

Shim for Object.keys

Provides a cross-browser implementation of Object.keys to retrieve the keys of an object.

var keys = require('object-keys');
var obj = { a: 1, b: 2, c: 3 };
console.log(keys(obj)); // ['a', 'b', 'c']

Other packages similar to object-keys

FAQs

Package last updated on 07 Apr 2019

Did you know?

Socket

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