Skip to content

Commit

Permalink
Refactored trim file
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-sakharov committed Dec 22, 2017
1 parent 880a473 commit f7a17a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/trim.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function trim(str) {
return str.replace(/^\s+|\s+$/g, '');
}
const trim = str => str.replace(/^\s+|\s+$/g, '');

export default trim;

0 comments on commit f7a17a6

Please sign in to comment.