Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 30b7b11

Browse files
committedJan 18, 2025··
Format all files
1 parent e272184 commit 30b7b11

File tree

103 files changed

+5363
-5349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+5363
-5349
lines changed
 

‎.github/workflows/build-and-test-types.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
'node-standard',
132132
'node-esm',
133133
'react-native',
134-
'expo'
134+
'expo',
135135
]
136136
steps:
137137
- name: Checkout repo

‎CHANGELOG.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const mySelector = createSelector(
4040
values => {
4141
console.log('calling..')
4242
return values.reduce((acc, val) => acc + val, 0)
43-
}
43+
},
4444
)
4545

4646
var createSelector = require('./dist/reselect.js').createSelector
@@ -50,7 +50,7 @@ const mySelector = createSelector(
5050
values => {
5151
console.log('calling..')
5252
return values.reduce((acc, val) => acc + val, 0)
53-
}
53+
},
5454
)
5555

5656
var state1 = { values: [1, 2, 3, 4, 5, 6, 7, 8, 9] }
@@ -189,8 +189,8 @@ const structuredSelector = createSelector(
189189
(a, b, c) => ({
190190
a,
191191
b,
192-
c
193-
})
192+
c,
193+
}),
194194
)
195195
```
196196

@@ -202,7 +202,7 @@ const mySelectorB = state => state.b
202202

203203
const structuredSelector = createStructuredSelector({
204204
x: mySelectorA,
205-
y: mySelectorB
205+
y: mySelectorB,
206206
})
207207

208208
const result = structuredSelector({ a: 1, b: 2 }) // will produce {x: 1, y: 2}
@@ -256,7 +256,7 @@ Selector creators can receive a variadic number of dependencies as well as an ar
256256
```js
257257
const selector = createSelector(
258258
[state => state.a, state => state.b],
259-
(a, b) => a * b
259+
(a, b) => a * b,
260260
)
261261
```
262262

@@ -266,7 +266,7 @@ const selector = createSelector(
266266
const selector = createSelector(
267267
state => state.a,
268268
state => state.b,
269-
(a, b) => a * b
269+
(a, b) => a * b,
270270
)
271271
```
272272

@@ -279,7 +279,7 @@ const selector = createSelector(
279279
state => state.a,
280280
(state, props) => state.b * props.c,
281281
(_, props) => props.d,
282-
(a, bc, d) => a + bc + d
282+
(a, bc, d) => a + bc + d,
283283
)
284284
```
285285

@@ -297,7 +297,7 @@ const selector = customSelectorCreator(
297297
(a, b) => {
298298
called++
299299
return a + b
300-
}
300+
},
301301
)
302302
assert.equal(selector({ a: 1, b: 2 }), 3)
303303
assert.equal(selector({ a: 1, b: 2 }), 3)

0 commit comments

Comments
 (0)
Please sign in to comment.