Howie
Howie

Reputation: 2778

Parameter-checking library

I don't know what's it called, but I'm looking for lightweight JS libraries with which I can properly test passing parameters (at least general type-checking and integer detection).

I've seen UnderscoreJS, but it doesn't have everything I need + it has some other stuff that I won't use ("bloat" for my use-case).

SIDENOTE: I'm really into frantically validating & verifying my input parameters for as long as I can remember...

Upvotes: 1

Views: 144

Answers (1)

Flight Odyssey
Flight Odyssey

Reputation: 2287

Try Google Closure's type annotations for a flexible solution.

Also see some other suggestions here

Upvotes: 1

Related Questions