1.3.0 • Published 9 years ago

@basket/get v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago
get

<a target="_blank" href="https://travis-ci.org/borovin/get"><img src="https://travis-ci.org/borovin/get.svg?branch=master" /></a>
<a target="_blank" href="https://codecov.io/gh/borovin/get"><img src="https://codecov.io/gh/borovin/get/branch/master/graph/badge.svg" /></a>
<a target="_blank" href="https://www.bithound.io/github/borovin/get"><img src="https://www.bithound.io/github/borovin/get/badges/score.svg"></a>

Smart property getter

const value = get(object, path); // => 'value'

Gets the value at path of object. If some segment of the path is undefined or null the result value will be undefined.

If some segment of the path is function it will be invoked with object context and returned value will be used.

1.3.0

9 years ago

1.2.6

9 years ago

1.2.5

9 years ago

1.2.4

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.1.0

9 years ago