99x-incubator / js-input-validator

Simple JS Input Validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code refactor with using common variables

kelumsampath opened this issue · comments

Returning values of some functions repeating again and again. To avoid repeat same value use common variable to return that same value returning. It may improve code maintainability.

eg : "Invalid data type!" string