/* -------------------------- */ /* mapperPlugin */ /* -------------------------- */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.mapperPlugin = global.mapperPlugin || {}))); }(this, function (exports) { 'use strict'; var mapperPlugin = function mapperPlugin() { var state = {} // // var mapperPlugin = function mapperPlugin() {} var mapperPlugin = function mapperPlugin(_) { if (arguments.length < 1) { return state } if (typeof _ === 'object') { state = Object.assign({}, state, _) return state } if (typeof _ === 'string') { if (state[_] !== undefined) { return state[_] } } } return mapperPlugin } exports.mapperPlugin = mapperPlugin }));