Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
7
node_modules/titleize/index.js
generated
vendored
Normal file
7
node_modules/titleize/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export default function titleize(string) {
|
||||
if (typeof string !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return string.toLowerCase().replace(/(?:^|\s|-)\S/g, x => x.toUpperCase());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue