define(['exports', './string'], function (exports, _string) { 'use strict'; var Helpers = { isIE: function isIE() { return /msie|MSIE/.test(navigator.userAgent); }, removeNbFormat: function removeNbFormat(data, format) { if (!data) { return; } if (!format) { format = 'us'; } var n = data; if (_string.Str.lower(format) === 'us') { n = +n.replace(/[^\d\.-]/g, ''); } else { n = +n.replace(/[^\d\,-]/g, '').replace(',', '.'); } return n; } }; exports.Helpers = Helpers; }); /** * Misc helpers */ //# sourceMappingURL=helpers.js.map