Socket
Book a DemoInstallSign in
Socket

random-object-key

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-object-key

Get a random key from an object

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

random-object-key

Get a random key from an object

Install

npm install random-object-key

Usage

import randomObjectKey from 'random-object-key';

randomObjectKey({foo: true, bar: true});
//=> 'bar'
  • random-obj-prop - Get a random property from an object
  • random-int - Generate a random integer
  • random-float - Generate a random float
  • random-item - Get a random item from an array
  • unique-random - Generate random numbers that are consecutively unique
  • unique-random-array - Get consecutively unique elements from an array
  • crypto-random-string - Generate a cryptographically strong random string

Keywords

random

FAQs

Package last updated on 09 Apr 2024

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