value-get

WebJar for value-get

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

value-get
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

value-get
WebJar for value-get
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/bendrucker/value-get

Скачать value-get

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/value-get/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>value-get</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/value-get/
implementation 'org.webjars.npm:value-get:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/value-get/
implementation ("org.webjars.npm:value-get:1.0.0")
'org.webjars.npm:value-get:jar:1.0.0'
<dependency org="org.webjars.npm" name="value-get" rev="1.0.0">
  <artifact name="value-get" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='value-get', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "value-get" % "1.0.0"
[org.webjars.npm/value-get "1.0.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : ap jar [0.2.0,0.3)
org.webjars.npm : dot-prop jar [2.2.0,2.3)

Модули Проекта

Данный проект не имеет модулей.

value-get Build Status Greenkeeper badge

Create functional property getters

Install

$ npm install --save value-get

Usage

var get = require('value-get')

get('foo', {foo: 'bar'})
//=> bar

var getFoo = get('foo')
getFoo({foo: 'bar'})
//=> bar

var getDeepBar = get('foo.bar')
getDeepBar({foo: {bar: 'baz'}})
//=> baz

API

get(path, [obj]) -> any

path

Required
Type: string

The string key path. The path can be a normal key or use dot property syntax for deep access. If you need an actual dot, escape it:

get('foo\\.bar', {'foo.bar': 'baz'})
//=> baz
obj

Type: object

The object to get the value from. If no object is supplied, a partially applied function with the path will be returned.

License

MIT © Ben Drucker

Версии библиотеки

Версия
1.0.0