Initial Commit Rework

This commit is contained in:
Qstick 2017-09-03 22:20:56 -04:00
commit 95051cbd63
2483 changed files with 101351 additions and 111396 deletions

View file

@ -0,0 +1,5 @@
export default function combinePath(isWindows, basePath, paths = []) {
const slash = isWindows ? '\\' : '/';
return `${basePath}${slash}${paths.join(slash)}`;
}

View file

@ -0,0 +1,17 @@
import _ from 'lodash';
function split(input, separator = ',') {
if (!input) {
return [];
}
return _.reduce(input.split(separator), (result, s) => {
if (s) {
result.push(s);
}
return result;
}, []);
}
export default split;

View file

@ -0,0 +1,11 @@
function titleCase(input) {
if (!input) {
return '';
}
return input.replace(/\w\S*/g, (match) => {
return match.charAt(0).toUpperCase() + match.substr(1).toLowerCase();
});
}
export default titleCase;