UNPKG
@paydirt/fmt
Version:
latest (0.3.1)
next (0.4.0-rc.0)
0.4.0-rc.0
0.3.1
0.3.0
0.2.2
0.2.1
0.2.1-rc.3
String formating using commonly used standards
github.com/carlcalderon/fmt
carlcalderon/fmt
@paydirt/fmt
/
lib
/
bundle
/
replacers
/
type.js
9 lines
(8 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
stringReplacer
from
'./string'
;
export
default
function
(
_, mods, value
) {
return
stringReplacer
(
's'
, mods, (
typeof
value ===
'object'
? (
Array
.
isArray
(value) ?
'array'
:
'object'
) :
typeof
value)); }