Closed vinothkr closed 6 years ago
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match
States that if there is a match, the first element of the array is the entire match. In which case there is atleast 1 element. Should we make this return Maybe NonEmptyArray (Maybe String)?
Maybe NonEmptyArray (Maybe String)
👍
Resolved in the 0.12 branch.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match
States that if there is a match, the first element of the array is the entire match. In which case there is atleast 1 element. Should we make this return
Maybe NonEmptyArray (Maybe String)
?