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

Commit

Permalink
test?
Browse files Browse the repository at this point in the history
  • Loading branch information
hb432 committed Jun 18, 2020
1 parent 50dc463 commit 9ce6e29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,16 @@ const framework = {
return framework.extend({}, ...framework.flat(array.map(consumer)));
},
pascal: (string, separator) => {
return string
.split(separator)
.map((chunk) => {
return framework.upper(chunk[0]) + framework.lower(chunk.slice(1));
})
.join('');
if (seperator) {
return string
.split(separator)
.map((chunk) => {
return framework.pascal(chunk);
})
.join('');
} else {
return framework.upper(string[0]) + string.slice(1);
}
},
simplify: (...context) => {
let output = null;
Expand Down
2 changes: 1 addition & 1 deletion index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ce6e29

Please sign in to comment.