Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.keys

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.keys

The lodash method `_.keys` exported as a module.

  • 4.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.8M
decreased by-17.29%
Maintainers
3
Weekly downloads
 
Created

What is lodash.keys?

The lodash.keys package is a utility library that provides a method to retrieve the keys of an object. It is part of the larger Lodash library, which offers a wide range of utility functions for common programming tasks.

What are lodash.keys's main functionalities?

Retrieve Object Keys

This feature allows you to retrieve the keys of an object. The code sample demonstrates how to use lodash.keys to get the keys of an object and print them to the console.

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

Other packages similar to lodash.keys

Keywords

FAQs

Package last updated on 13 Aug 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc