UNPKG

@zhiguang-gastrofy/capi

Version:

comany apis, including Northfork api and Gastrofy api

15 lines 441 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseImage = function (item) { return item.images && item.images.length && item.images[0].url; }; exports.decimalPrice = function (price) { var value = price.toFixed(2); return +value; }; exports.parsePrice = function (price) { if (!price) return 0; return exports.decimalPrice(price / 100); }; //# sourceMappingURL=utils.js.map