@@ -184,11 +184,23 @@ eval("__webpack_require__.r(__webpack_exports__);\n/**\n * \n * 12345 => $12,345
184184/*!****************************!*\
185185 !*** ./src/other/index.js ***!
186186 \****************************/
187- /*! exports provided: currency, pluralize */
187+ /*! exports provided: currency, pluralize, ordinal */
188188/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
189189
190190"use strict" ;
191- eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _currency__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./currency */ \"./src/other/currency.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"currency\", function() { return _currency__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _pluralize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pluralize */ \"./src/other/pluralize.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pluralize\", function() { return _pluralize__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n\n\n\n\n//# sourceURL=webpack:///./src/other/index.js?" ) ;
191+ eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _currency__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./currency */ \"./src/other/currency.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"currency\", function() { return _currency__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _pluralize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pluralize */ \"./src/other/pluralize.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pluralize\", function() { return _pluralize__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ordinal */ \"./src/other/ordinal.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ordinal\", function() { return _ordinal__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n\n\n\n\n\n//# sourceURL=webpack:///./src/other/index.js?" ) ;
192+
193+ /***/ } ) ,
194+
195+ /***/ "./src/other/ordinal.js" :
196+ /*!******************************!*\
197+ !*** ./src/other/ordinal.js ***!
198+ \******************************/
199+ /*! exports provided: default */
200+ /***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
201+
202+ "use strict" ;
203+ eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/index */ \"./src/util/index.js\");\n\n/**\n * 42 => 'nd'\n *\n * @params {Object} options\n * \n */\n\nfunction ordinal(value, options) {\n options = options || {};\n var output = '';\n var includeNumber = options.includeNumber != null ? options.includeNumber : false;\n if (includeNumber === true) output += value;\n var j = value % 10,\n k = value % 100;\n if (j == 1 && k != 11) output += 'st';else if (j == 2 && k != 12) output += 'nd';else if (j == 3 && k != 13) output += 'rd';else output += 'th';\n return output;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ordinal);\n\n//# sourceURL=webpack:///./src/other/ordinal.js?" ) ;
192204
193205/***/ } ) ,
194206
@@ -200,7 +212,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cur
200212/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
201213
202214"use strict" ;
203- eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/index */ \"./src/util/index.js\");\n\n/**\n * 'item' => 'items'\n *\n * @params \n * an array of strings corresponding to \n * the single, double, triple ... forms of the word to \n * be pluralized. When the number to be pluralized \n * exceeds the length of the args, it will use the last \n * entry in the array.\n *\n * e.g. ['single', 'double', 'triple', 'multiple'] \n */\n\nfunction pluralize( value) {\n var args = _util_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toArray(arguments, 1); \n return args.length > 1 ? args [value % 10 - 1] || args[args .length - 1] : args[0] + (value === 1 ? '' : 's');\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (pluralize);\n\n//# sourceURL=webpack:///./src/other/pluralize.js?" ) ;
215+ eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/index */ \"./src/util/index.js\");\n\n/**\n * 'item' => 'items'\n *\n * @param {String|Array} word \n * @param {Object} options\n * \n */\n\nfunction pluralize(value, word, options) { \n options = options || {};\n var output = ''; \n var includeNumber = options.includeNumber != null ? options.includeNumber : false; \n if (includeNumber === true) output += value + ' '; \n if (! value && value !== 0 || !word) return output;\n\n if (Array.isArray(word)) { \n output += word [value - 1] || word[word .length - 1];\n } else {\n output += word + (value === 1 ? '' : 's');\n }\n\n return output ;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (pluralize);\n\n//# sourceURL=webpack:///./src/other/pluralize.js?" ) ;
204216
205217/***/ } ) ,
206218
0 commit comments