@@ -63,7 +63,7 @@ function normalizeOrders(orders) {
6363if ( orders === undefined ) {
6464return undefined ;
6565}
66- const convert = order => {
66+ const convert = ( order ) => {
6767if ( [ "desc" , false ] . includes ( order ) ) {
6868return "desc" ;
6969}
@@ -107,7 +107,7 @@ export class Table {
107107
108108accessIds ( branch , ids ) {
109109const map = branch [ this . mapName ] ;
110- return ids . map ( id => map [ id ] ) ;
110+ return ids . map ( ( id ) => map [ id ] ) ;
111111}
112112
113113idExists ( branch , id ) {
@@ -144,8 +144,8 @@ export class Table {
144144[ this . mapName ] :{ } ,
145145} ;
146146const attrIndexes = Object . keys ( this . fields )
147- . filter ( attr => attr !== this . idAttribute )
148- . filter ( attr => this . fields [ attr ] . index )
147+ . filter ( ( attr ) => attr !== this . idAttribute )
148+ . filter ( ( attr ) => this . fields [ attr ] . index )
149149. reduce (
150150( indexes , attr ) => ( {
151151 ...indexes ,
@@ -181,7 +181,7 @@ export class Table {
181181
182182const { idAttribute} = this ;
183183
184- const optimallyOrderedClauses = sortBy ( clauses , clause => {
184+ const optimallyOrderedClauses = sortBy ( clauses , ( clause ) => {
185185if ( clauseFiltersByAttribute ( clause , idAttribute ) ) {
186186return 1 ;
187187}
@@ -344,9 +344,10 @@ export class Table {
344344
345345const indexesToAppendTo = Object . keys ( workingState . indexes )
346346. filter (
347- fkAttr => entry . hasOwnProperty ( fkAttr ) && entry [ fkAttr ] !== null
347+ ( fkAttr ) =>
348+ entry . hasOwnProperty ( fkAttr ) && entry [ fkAttr ] !== null
348349)
349- . map ( fkAttr => [ fkAttr , entry [ fkAttr ] ] ) ;
350+ . map ( ( fkAttr ) => [ fkAttr , entry [ fkAttr ] ] ) ;
350351
351352if ( withMutations ) {
352353ops . mutable . push ( id , workingState [ this . arrName ] ) ;
@@ -427,7 +428,7 @@ export class Table {
427428update ( tx , branch , rows , mergeObj ) {
428429const { batchToken, withMutations} = tx ;
429430
430- const mergeObjInto = row => {
431+ const mergeObjInto = ( row ) => {
431432const merge = withMutations
432433 ?ops . mutable . merge
433434 :ops . batch . merge ( batchToken ) ;
@@ -436,7 +437,7 @@ export class Table {
436437
437438const set = withMutations ?ops . mutable . set :ops . batch . set ( batchToken ) ;
438439
439- const indexedAttrs = Object . keys ( branch . indexes ) . filter ( attr =>
440+ const indexedAttrs = Object . keys ( branch . indexes ) . filter ( ( attr ) =>
440441mergeObj . hasOwnProperty ( attr )
441442) ;
442443const indexIdsToAdd = [ ] ;
@@ -460,7 +461,7 @@ export class Table {
460461) ;
461462const id = result [ this . idAttribute ] ;
462463const nextRow = set ( id , result , map ) ;
463- indexedAttrs . forEach ( attr => {
464+ indexedAttrs . forEach ( ( attr ) => {
464465const { [ attr ] :prevValue } = prevAttrValues ;
465466const { [ attr ] :nextValue } = nextAttrValues ;
466467if ( prevValue === nextValue ) {
@@ -523,7 +524,7 @@ export class Table {
523524{
524525[ value ] :ops . batch . filter (
525526batchToken ,
526- rowId => rowId !== id ,
527+ ( rowId ) => rowId !== id ,
527528indexMap [ attr ] [ value ]
528529) ,
529530} ,
@@ -561,17 +562,17 @@ export class Table {
561562const { arrName, mapName} = this ;
562563const arr = branch [ arrName ] ;
563564
564- const idsToDelete = rows . map ( row => row [ this . idAttribute ] ) ;
565+ const idsToDelete = rows . map ( ( row ) => row [ this . idAttribute ] ) ;
565566if ( withMutations ) {
566- idsToDelete . forEach ( id => {
567+ idsToDelete . forEach ( ( id ) => {
567568const idx = arr . indexOf ( id ) ;
568569ops . mutable . splice ( idx , 1 , [ ] , arr ) ;
569570ops . mutable . omit ( id , branch [ mapName ] ) ;
570571} ) ;
571572// delete ids from all indexes
572- Object . values ( branch . indexes ) . forEach ( attrIndex =>
573- Object . values ( attrIndex ) . forEach ( valueIndex =>
574- idsToDelete . forEach ( id => {
573+ Object . values ( branch . indexes ) . forEach ( ( attrIndex ) =>
574+ Object . values ( attrIndex ) . forEach ( ( valueIndex ) =>
575+ idsToDelete . forEach ( ( id ) => {
575576const idx = valueIndex . indexOf ( id ) ;
576577if ( idx !== - 1 ) {
577578ops . mutable . splice ( idx , 1 , [ ] , valueIndex ) ;
@@ -592,7 +593,7 @@ export class Table {
592593( attrIndexMap , [ value , valueIndex ] ) => {
593594attrIndexMap [ value ] = ops . batch . filter (
594595batchToken ,
595- id => ! idsToDelete . includes ( id ) ,
596+ ( id ) => ! idsToDelete . includes ( id ) ,
596597valueIndex
597598) ;
598599return attrIndexMap ;
@@ -613,7 +614,7 @@ export class Table {
613614{
614615[ arrName ] :ops . batch . filter (
615616batchToken ,
616- id => ! idsToDelete . includes ( id ) ,
617+ ( id ) => ! idsToDelete . includes ( id ) ,
617618branch [ arrName ]
618619) ,
619620[ mapName ] :ops . batch . omit (