check file type javascript code example Example: how to check type of value in a java script file $ npm install --save-dev flow-bin