Skip to content

Commit 1e2815d

Browse files
committed
Fix jsdoc to match api doc
1 parent ce2f2a3 commit 1e2815d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/filters/array-filters.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ export function filterBy (arr, search, delimiter) {
7575
* Filter filter for arrays
7676
*
7777
* @param {String|Array<String>} sortKeys
78-
* @param {String} reverse
78+
* @param {Boolean} [order]
7979
*/
8080

81-
export function orderBy (arr, sortKeys, reverse) {
81+
export function orderBy (arr, sortKeys, order) {
8282
arr = convertArray(arr)
83-
let order = (reverse && reverse < 0) ? -1 : 1
83+
order = (order && order < 0) ? -1 : 1
8484

8585
if (typeof sortKeys === 'string') {
8686
sortKeys = [sortKeys]

0 commit comments

Comments
 (0)