vamtiger-reference-object-path
v0.0.13
Published
Get a reference for defined object and path.
Downloads
3
Maintainers
Readme
VAMTIGER Reference Object Path
Get a reference for a defined object path.
Installation
VAMTIGER Reference Object Path can be installed using npm or yarn:
npm i --save vamtiger-reference-object-path
or
yarn add vamtiger-reference-object-path
Usage
Import or require a referece to VAMTIGER Reference Object Path:
import { ReferenceObjectPath } from 'vamtiger-reference-object-path';
const referenceObjectPath = require('vamtiger-reference-object-path') as ReferenceObjectPath;
or
const referenceObjectPath = require('vamtiger-reference-object-path');
VAMTIGER Reference Object Path can then be used to reference a defined object path:
const object = {
some: {
object: {
path: 'reference to object path'
}
}
};
const path = 'some.object.path';
const reference = referenceObjectPath({
object,
path
}); // 'reference to object path'