mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 09:28:26 +08:00
StandardJS Checks require space after function name
This commit is contained in:
@ -22,7 +22,7 @@
|
|||||||
* > ReverseStringIterative(null)
|
* > ReverseStringIterative(null)
|
||||||
* ! TypeError
|
* ! TypeError
|
||||||
*/
|
*/
|
||||||
function ReverseStringIterative(string) {
|
function ReverseStringIterative (string) {
|
||||||
if (typeof string !== 'string') {
|
if (typeof string !== 'string') {
|
||||||
throw new TypeError('The given value is not a string')
|
throw new TypeError('The given value is not a string')
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ function ReverseStringIterative(string) {
|
|||||||
* > ReverseStringIterativeInplace(null)
|
* > ReverseStringIterativeInplace(null)
|
||||||
* ! TypeError
|
* ! TypeError
|
||||||
*/
|
*/
|
||||||
function ReverseStringIterativeInplace(string) {
|
function ReverseStringIterativeInplace (string) {
|
||||||
if (typeof string !== 'string') {
|
if (typeof string !== 'string') {
|
||||||
throw new TypeError('The given value is not a string')
|
throw new TypeError('The given value is not a string')
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user