Skip to content

Commit 0c7bd43

Browse files
authored
Update index.js
1 parent b6b39b5 commit 0c7bd43

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
var groupBy = require('lodash.groupby')
4-
const smartArrayToTree = (array, options) => {
4+
module.exports = function smartArrayToTree(array, options) {
55
options = Object.assign({
66
id: 'id',
77
pid: 'pid',
@@ -22,5 +22,3 @@ const smartArrayToTree = (array, options) => {
2222
}
2323
return firstArray;
2424
}
25-
26-
module.exports = smartArrayToTree;

0 commit comments

Comments
 (0)