Skip to content

Commit 2ffccfe

Browse files
committed
use ! to negate instead of - in rearrange helper
1 parent bddc9ec commit 2ffccfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/rearrange.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = (collection, property, orderSpec) => {
77
const restIdx = order.indexOf('*')
88
if (~restIdx) order.splice(restIdx, 1)
99
const targetCollection = order.reduce((accum, key) => {
10-
if (key.startsWith('-')) {
10+
if (key.startsWith('!')) {
1111
sourceCollection.delete(key.substr(1))
1212
} else if (sourceCollection.has(key)) {
1313
accum.push(sourceCollection.get(key))

0 commit comments

Comments
 (0)