UNPKG
victory-vendor
Version:
latest (38.0.0)
next (38.0.1-canary-20261107172208)
38.0.1-canary-20261107172208
38.0.0
38.0.0-canary-20261103184440
38.0.0-canary-20261028042222
37.4.1
37.4.0
37.4.0-canary-20261026180958
37.3.6
37.3.5
37.3.4
37.3.3
37.3.2
37.3.1
37.3.0
37.2.0
37.1.2
37.1.1
37.1.0
37.0.3-next.0
37.0.2
37.0.1
37.0.1-next.2
37.0.1-next.1
37.0.1-next.0
37.0.0
36.9.2
36.9.2-next.3
36.9.2-next.1
36.9.2-next.0
36.9.1
36.9.1-next.0
36.9.0
36.8.6
36.8.5
36.8.5-next.0
36.8.4
36.8.3
36.8.2
36.8.1
36.7.0
36.6.12
36.6.11
36.6.10
36.6.8
36.6.7
36.6.6
36.6.5
36.6.4
36.6.3
36.6.2
36.6.1
36.6.0
36.5.1
36.5.0
36.4.0
Vendored dependencies for Victory
commerce.nearform.com/open-source/victory
FormidableLabs/victory
victory-vendor
/
lib-vendor
/
d3-format
/
src
/
formatNumerals.js
13 lines
(12 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
= _default;
function
_default
(
numerals
) {
return
function
(
value
) {
return
value.
replace
(
/[0-9]/g
,
function
(
i
) {
return
numerals[+i]; }); }; }