brisky-get-reference

1.0.2 • Public • Published

get-reference

Build Status js-standard-style npm version Coverage Status

var ref = getReference(obj)

Get's the referenced vigour-base object

  • obj (object) - the reference we want to follow
  • returns (object) ref - The referenced object or undefined
const Base = require('vigour-base')
const getReference = require('brisky-get-reference')
 
const a = new Base({})
const b = new Base(a)
getReference(b) // a

Readme

Keywords

Package Sidebar

Install

npm i brisky-get-reference

Weekly Downloads

3

Version

1.0.2

License

ISC

Last publish

Collaborators

  • vigour-io