🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

getx

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

getx

Get deep into an object given an array of keys

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

getx

Get deep into an object given an array of keys.

api

getx (object, array[string]) -> any

install

npm install getx --save

usage

  var getx = require('getx')

  var obj = { x: { y: { z: 1 } } }

  var keyPath = ['x', 'y', 'z']

  getx(obj, keyPath) // 1

Keywords

get

FAQs

Package last updated on 16 Jun 2017

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