dlv

Object accessor

A utility function that safely accesses nested object properties using dot notation or arrays, with options for default values.

Safe deep property access in 120 bytes. x = dlv(obj, 'a.b.x')

GitHub

1k stars
9 watching
41 forks
Language: JavaScript
last commit: about 4 years ago
Linked from 1 awesome list

dlvjavascriptkeyobject

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
jonschlinkert/get-value A utility library that provides a simple way to access nested properties of objects using dot notation. 247
simonepri/env-dot-prop A package that allows accessing environment variables as if they were JavaScript objects 33
ljharb/object-keys Provides a shim for accessing object keys in JavaScript environments where Object.keys is not available. 45
doov-org/doov A fluent API for type-safe domain model validation and mapping using annotations and code generation. 92
developit/preact-todomvc A TodoMVC application built with Preact, demonstrating a compact implementation of the classic todo list app 105
zevv/with Provides a macro to simplify access to object fields in Nim programming language 87
component/dom An aggregate library of DOM traversal, manipulation and events functions 229
sindresorhus/dot-prop A library to access properties within nested objects using a dot notation 822
bahmutov/d3-helpers A utility function for chaining property access and function composition in D3.js data visualization 26
ded/valentine A JavaScript utility library providing functional iterators and common helpers such as waterfalls, queues, and parallels. 286
olov/defs Enables static scope analysis and transpilation of ES6 block scoped const and let variables to ES3. 115
jodosoft/libraries A collection of .NET libraries providing basic numeric, geometric and data structure functionality for simple, reliable development 13
developit/preact-portal An NPM package that provides a reusable way to render Preact components into specific parts of the DOM. 180
simonnilsson/ask A package that provides a way to access nested properties in data structures using a simple and expressive query language. 48
developit/preact-cycle A minimal Virtual DOM rendering library using Preact 139