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