2.0.0 • Published 7 years ago

@specla/dot-string v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Specla dot-string

npm version Build Status Coverage Status Dependency Status Standard - JavaScript Style Guide

Manage array items or object properties with dot notation strings.

Install

npm install @specla/dot-string

Usage

import { get, set } from '@specla/dot-string'

// Get an array item or object property with dot string syntax
const value = get(obj, 'key.item')

// Mutate array item or object property
set(obj, 'key.item', 'some value...')