mirror of https://github.com/01-edu/public.git
docs(froup-prices): correct grammar
This commit is contained in:
parent
372a0e9f4c
commit
1e9c297c7c
|
@ -2,11 +2,15 @@
|
|||
|
||||
### Instructions
|
||||
|
||||
Create a `groupPrice` function, that can find a price in a given string.
|
||||
The function has to return an array of arrays with the full match of the price ($43.99)
|
||||
and the groups of that price, the first group(43) and the second group (99).
|
||||
If there is no match the function returns an empty array.
|
||||
Example:
|
||||
"The price is USD12.31"
|
||||
Expected output:
|
||||
[["USD12.31","12","31"]]
|
||||
Create a function named `groupPrice`, that can prices in a given string.
|
||||
|
||||
Your function will return s 2D array with the full price breakdown.
|
||||
|
||||
If there is no match, your function should return an empty array.
|
||||
|
||||
### Example
|
||||
Given price of `USD12.31`:
|
||||
```
|
||||
[["USD12.31", "12", "31"]]
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue