UNPKG

pricehistory

Version:
12 lines (11 loc) 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function setCandleAnchor(option, candle) { var _a; if ((_a = option.anchor) === null || _a === void 0 ? void 0 : _a.length) { for (const anchor of option.anchor) { candle[`anchor${anchor}`] = anchor; } } } exports.default = setCandleAnchor;