// Apply parser regex and set all properties based on the result
matches = parser[ options.strictMode ? 'strict' : 'loose' ].exec( str );
- $.each( properties, function ( i, property ) {
+ properties.forEach( function ( property, i ) {
uri[ property ] = matches[ i + 1 ];
} );
$.each( this.query, function ( key, val ) {
var k = Uri.encode( key ),
vals = Array.isArray( val ) ? val : [ val ];
- $.each( vals, function ( i, v ) {
+ vals.forEach( function ( v ) {
if ( v === null ) {
args.push( k );
} else if ( k === 'title' ) {