HomePhabricator

Use native ES5 Array prototype methods instead of jQuery

Description

Use native ES5 Array prototype methods instead of jQuery

Replace

  • $.each( array, function ( index, value ) { ... } ) by array.forEach( function ( value, index ) { ... } )
  • $.grep( array, function ( value ) { ... } ) by array.filter( function ( value ) { ... } )
  • $.map( array, function ( value ) { ... } ) by array.map( function ( value ) { ... } )
  • $.inArray( value, array ) by array.indexOf( value )

This change is a follow-up to 1edba8029a561919febf8b90f5df689d090665dd.

Change-Id: I16134642c52002de0eacb987bed5143f528bf627

Details

Provenance
FomafixAuthored on Jan 12 2018, 3:47 PM
Parents
rMWbd83a8ca8844: Merge "Add tests for legacy encoding when constructing RevisionRecords"
Branches
Unknown
Tags
Unknown
ChangeId
I16134642c52002de0eacb987bed5143f528bf627