npm.io
1.0.2 • Published 9 years ago

brisky-get-reference

Licence
ISC
Version
1.0.2
Deps
1
Vulns
0
Weekly
0

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

Keywords