Open
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 ) => boolean
Eg : 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-string
Alias: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:
.
Metadata
Metadata
Assignees
Labels
RFC feature request which has been accepted.Issue or pull request for adding a new feature.A good first issue for new contributors!Issue involves or relates to JavaScript.Request for comments. Feature requests and proposed changes.May require some initial design or R&D, but should be straightforward to resolve and/or implement.Normal priority concern or feature request.