wadjet
Version:
The your birth date is based on statistical psychology and will expose your personality. This package as a mocule does its calculations.
27 lines (24 loc) • 657 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
* Get an accessor to the table.
* @param {string[]} label Label.
* @param {number[][]} table Table.
*/
var tableXY = function tableXY(label, table) {
return function () {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref$x = _ref.x,
x = _ref$x === undefined ? 0 : _ref$x,
_ref$y = _ref.y,
y = _ref$y === undefined ? 0 : _ref$y;
return function (z) {
return z || '';
}(label[function (r) {
return r ? r[x] : undefined;
}(table[y])]);
};
};
exports.default = tableXY;