A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/klaemo/deep-set below:

klaemo/deep-set: Sets a value of a property in an object tree in Node and the browser.

Sets a value of a property in an object tree. Missing objects will (optionally) be created.

In the browser you can use deepSet with Browserify, RequireJS or as a window global.

var deepSet = require('deep-set')
var obj = { one: { two: { three: 'sad' } } }

deepSet(obj, 'one.two.three', 'yay')
// { one: { two: { three: 'yay' } } }

deepSet(obj, path, value, create)

MIT


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