UNPKG

nuclear-instance-container

Version:

A nuclear-js module to save arbitrary objects as instances. To be used as a singleton registry for a nuclear-js app.

19 lines (16 loc) 343 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.instance = instance; var _constants = require('./constants'); /** * Returns an instance getter for given key. * * @public * @param {string} key - instance key * @returns {Getter} */ function instance(key) { return [_constants.STORE_NAME, key]; }