GT2/GT2-Android/node_modules/babel-helpers/lib/index.js

31 lines
736 B
JavaScript
Raw Normal View History

"use strict";
exports.__esModule = true;
exports.list = undefined;
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _interopRequireDefault(_keys);
exports.get = get;
var _helpers = require("./helpers");
var _helpers2 = _interopRequireDefault(_helpers);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function get(name) {
var fn = _helpers2.default[name];
if (!fn) throw new ReferenceError("Unknown helper " + name);
return fn().expression;
}
var list = exports.list = (0, _keys2.default)(_helpers2.default).map(function (name) {
return name.replace(/^_/, "");
}).filter(function (name) {
return name !== "__esModule";
});
exports.default = get;