Method getProperty documentation

Returns the value of the given property from the given object.

Example

```javascript bbn.fn.getProperty({a: 1, b: 2}, 'b'); // 2 ```

Example

```javascript bbn.fn.getProperty({a: 1, b: {o: {a: 33, h: 5}}}, 'b.o.a'); // 33 ```

Example

```javascript bbn.fn.getProperty({a: 1, b: {o: {a: 33, h: 5}}}, 'b.h.a'); // undefined ```

Returns the value of the given property from the given object. - Looks for the given property in the given object, accepting dot (.) separator for deep property access, and returns its value if found and undefined otherwise. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.