Line 175: |
Line 175: |
| return read; | | return read; |
| } | | } |
− | Object.keys( array ).forEach( function ( piece ) { | + | if (Object.keys( array ).length > 0 ){ |
− | if ( array[ piece ] === read ) { return read };
| + | Object.keys( array ).forEach( function ( piece ) { |
− | });
| + | if ( array[ piece ] === read ) { return read }; |
| + | }); |
| + | } |
| } | | } |
| | | |