A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/Ntran013/dot-access below:

ntharim/dot-access: Access object properties using dot notation.

Access object properties using dot notation.

var dotAccess = require('dot-access');

var user = { 
  fullname: { 
    first: 'Joe', 
    last: 'M' 
  } 
};

// get
dotAccess.get(user, 'fullname.first'); // 'Joe'

// or set
dotAccess.set(user, 'fullname.last', 'T'); // 'T'

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