is-number
Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.
isnumber
A simple test to see if a value is a non-infinite number.
stately.js
Stately.js is a JavaScript based finite-state machine (FSM) engine for Node.js and the browser.