get

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object

Retreive an object value using a dotted path like “myObject.myProperty.myValue”

Params

  1. obj*-Object

    The object in which to set the value

  2. path*-String

    The dotted object path to get

Return

  1. -Mixed

    The getted value or “undefined” if nothing found…

Example

import { get } from '@blackbyte/sugar/object';
get(myObject, 'my.cool.value'); // => 'Hello world'

Todo

  • testsnormal