A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/doowb/upsert-value below:

doowb/upsert-value: Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths.

Update or set nested values and any intermediaries with dot notation ('a.b.c') paths.

Install with npm

$ npm i upsert-value --save
var upsert = require('upsert-value');

Update or set a value on the given object with the given key path.

Params

Example

var obj = {};
upsert(obj, 'a.b.c', 'foo');
//=> {a: {b: {c: 'foo'}}}

Install dev dependencies:

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Brian Woodward

Copyright © 2015 Brian Woodward Released under the MIT license.

This file was generated by verb-cli on July 09, 2015.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4