0.1.4 • Published 6 years ago

@tight/object-extract v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

object-extract

Extract nested values from objects:

import extract from '@tight/object-extract';

const object = {
  foo: 'value of foo',
  bar: {
    baz: 'value of bar.baz'
  }
};

extract(object, 'foo'); 
// => value of foo

extract(object, 'foo.bar'); 
// => value of bar.baz
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago