Destinations

Destinations object is used to access properties usually stored and managed by external service.

Version 4.x

Basic Usage

1
2
3
4
5
6
7
8
var destinations = require('core/v4/destinations');

var destination = {};
destination.name1 = 'value1';
destinations.set('destination1', destination);
var result = destinations.get('destination1');

result.name1 === 'value1';

Definition

Functions


Function Description Returns
get(name) Returns an object representing the destination object
set(name, destination) Sets the destination object under the given name -

Compatibility

Rhino Nashorn V8


Version 3.x

N/A


Version 2.x

N/A

Edit