Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
chore: FLatten file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
adambrgmn committed Jan 16, 2018
1 parent 7dfcc6f commit 75c91ec
Show file tree
Hide file tree
Showing 35 changed files with 18 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": ["./node_modules/frans-scripts/dist/config/lint/eslint.config.js"]
"extends": ["./node_modules/frans-scripts/dist/config/lint/eslint.config.js"],
"rules": {
"no-plusplus": "off"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/compose/index.js → src/compose.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import reduceRight from '../reduceRight';
import reduceRight from './reduceRight';

export default (...fns) => x => reduceRight((acc, fn) => fn(acc), x)(fns);
File renamed without changes.
2 changes: 1 addition & 1 deletion src/filter/index.js → src/filter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import reduce from '../reduce';
import reduce from './reduce';

export default fn => reduce((a, e) => (fn(e) ? a.concat(e) : a), []);
4 changes: 2 additions & 2 deletions src/find/index.js → src/find.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import findIndex from '../findIndex';
import nth from '../nth';
import findIndex from './findIndex';
import nth from './nth';

export default predicateFn => arr => {
const idx = findIndex(predicateFn)(arr);
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/head.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import nth from './nth';

export default nth(0);
3 changes: 0 additions & 3 deletions src/head/index.js

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions src/last.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import nth from './nth';

export default nth(-1);
3 changes: 0 additions & 3 deletions src/last/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pipe/index.js → src/pipe.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import reduce from '../reduce';
import reduce from './reduce';

export default (...fns) => x => reduce((acc, fn) => fn(acc), x)(fns);
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/reverse/index.js → src/reverse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reduceRight from '../reduceRight';
import pipe from '../pipe';
import reduceRight from './reduceRight';
import pipe from './pipe';

const reverseArray = reduceRight((a, e) => a.concat(e), []);
const reverseString = pipe(s => s.split(''), reverseArray, a => a.join(''));
Expand Down
2 changes: 1 addition & 1 deletion src/slice/index.js → src/slice.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import nth from '../nth';
import nth from './nth';

export default (s, e) => arr => {
const newArr = [];
Expand Down

0 comments on commit 75c91ec

Please sign in to comment.