value-units
0.2.0
split
Need help reading this?
split
src/split.js
Return an object with the value and the unit
split(string: any, options:
object
, value:
string
?):
object
Parameters
string
(any)
options
(
object
=
{}
)
Name
Description
options.factor
number
(default
1
)
multiply value by a factor during conversion
value
(
string
?)
Returns
object
: