feat: core string capitalize
This commit is contained in:
parent
3dbc6dae48
commit
dd750f772c
|
@ -5,11 +5,23 @@ export {
|
|||
shuffle,
|
||||
shuffleInPlace
|
||||
} from './array';
|
||||
export {EventEmitterMixin as EventEmitter} from './event-emitter';
|
||||
export {inflate, deflate} from './flate';
|
||||
export {compose, fastApply} from './function';
|
||||
export {iterateForEach} from './iterator';
|
||||
export {merge} from './merge';
|
||||
export {
|
||||
EventEmitterMixin as EventEmitter,
|
||||
} from './event-emitter';
|
||||
export {
|
||||
inflate,
|
||||
deflate,
|
||||
} from './flate';
|
||||
export {
|
||||
compose,
|
||||
fastApply
|
||||
} from './function';
|
||||
export {
|
||||
iterateForEach,
|
||||
} from './iterator';
|
||||
export {
|
||||
merge,
|
||||
} from './merge';
|
||||
export {
|
||||
mergeDiff,
|
||||
mergeDiffArray,
|
||||
|
@ -21,6 +33,16 @@ export {
|
|||
map as mapObject,
|
||||
fromEntries as objectFromEntries,
|
||||
} from './object';
|
||||
export {PropertyMixin as Property} from './property';
|
||||
export {TickingPromise} from './ticking-promise';
|
||||
export {virtualize, virtualizeStatic} from './virtualize';
|
||||
export {
|
||||
PropertyMixin as Property,
|
||||
} from './property';
|
||||
export {
|
||||
capitalize,
|
||||
} from './string';
|
||||
export {
|
||||
TickingPromise,
|
||||
} from './ticking-promise';
|
||||
export {
|
||||
virtualize,
|
||||
virtualizeStatic,
|
||||
} from './virtualize';
|
||||
|
|
3
packages/core/string.js
Normal file
3
packages/core/string.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
export const capitalize = (string) => (
|
||||
string ? `${string.slice(0, 1).toUpperCase()}${string.slice(1)}` : ''
|
||||
);
|
Loading…
Reference in New Issue
Block a user