Socket
Book a DemoInstallSign in
Socket

fastget

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastget

An alternative to lodash _.get()

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Fastget

An alternative to lodash' _.get(). It can get the value from an object or an array with ease.

Install

npm install fastget --save

or with yarn

yarn add fastget

Usage

import get from 'fastget';

const obj = {a: [{b: {c: 3}}]}

get(() => obj.a[0].b.c)
// => 3

get(() => obj.a.b.c, 'default')
// => 'default'

Tests

npm test

or with yarn

yarn test

Licence

MIT

FAQs

Package last updated on 30 May 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