Socket
Book a DemoInstallSign in
Socket

@ds-pack/get

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

@ds-pack/get

A utility for accessing values in deeply nested objects using key paths.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@ds-pack/get

A utility for accessing values in deeply nested objects using key paths.

Installation:

yarn add @ds-pack/get

Usage:

import get from '@ds-pack/get'

let theme = {
  colors: {
    blue: ['cadetblue', 'steelblue', 'cornflowerblue'],
  },
}

get(theme, 'colors.blue.2') // 'cornflowerblue'

Tools:

  • Typescript
  • Babel
  • Jest

FAQs

Package last updated on 11 Jan 2021

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