UNPKG

json-prism

Version:

Immutable Prisms, i.e. Taking a Multifoci Json Path to Immutability, or A sentient item has some ability to communicate, either by sharing its emotions, broadcasting its thoughts telepathically, or speaking aloud.

30 lines (23 loc) 862 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); var show = function show() { var _console; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return (_console = console).log.apply(_console, ['DEBUG::', aLine()].concat((0, _toConsumableArray2["default"])(args.map(function (arg) { return typeof arg !== 'string' ? JSON.stringify(arg, null, 0) : arg; })))); }; var aLine = function aLine() { var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 5; var a = []; a.length = 10; a.fill('-'); return a.join(''); }; module.exports = { show: function show() {}, aLine: aLine };