DEV Community

Discussion on: How would you refactor this JS function?

Collapse
 
pengeszikra profile image
Peter Vivo

Additional test cases, figure out without try it.

lineChecker([])
lineChecker(+[])
lineChecker(Infinity)
Enter fullscreen mode Exit fullscreen mode