1/** 2 * Global common utils for Knockout 3 * @author Mikel Cano 4 */ 5(function(globalKoPrices){ 6 7 function convertDoubleToStringI18n(price, language) { 8 9 if(!language) { 10 language = 'en'; 11 } 12 13 return price.toLocaleString(language, { maximumSignificantDigits: 2 }); 14 15 } 16 17 globalKoPrices.koPrices = { 18 convertDoubleToStringI18n: convertDoubleToStringI18n 19 } 20 21})(window)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.