-
-
Couldn't load subscription status.
- Fork 921
Description
Description
This RFC proposes adding package @stdlib/assert/is-complex-string.
The package should be similar in structure to @stdlib/complex/reviver-float32.
The goal is to assert if an input string is of a complex number format string(a + ib) or (a+bi)
where, a and b are numbers
function isComplexString( str ) => booleanEg : isComplexString( "32+12i" ) returns true
Eg : isComplexString( "32+i12" ) returns true
Eg : isComplexString( null ) returns true
Eg : isComplexString( "" ) returns false
Eg : isComplexString( "abcd+12i" ) returns false
Eg : isComplexString( Infinity ) returns false
Package:
@stdlib/assert/is-complex-stringAlias:isComplexString
Related Issues
Can help with issues #1332 and #1333
Questions
This is my first issue so I'd like to know if the way I have proposed the feature is correct
Other
No response
Checklist
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:.