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