src/utils/getFiles.js
Function getFiles
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getFiles = function( dir ) {
if ( typeof dir !== 'string' && !( dir instanceof Array ) ) {
throw new TypeError( 'getFiles err. Expected string or array, but received: ' + typeof dir )
}