add message to log operator
This commit is contained in:
parent
8d823ad673
commit
f7f0bb86a6
@ -20,8 +20,8 @@ export function humanize(value: string, lowercase = true): string {
|
||||
return words.map(capitalize).join(' ');
|
||||
}
|
||||
|
||||
export function log<T>(): MonoTypeOperatorFunction<T> {
|
||||
return tap<T>(res => console.log(`%c[${moment().format('HH:mm:ss.SSS')}]`, 'color: yellow;', res));
|
||||
export function log<T>(message = ''): MonoTypeOperatorFunction<T> {
|
||||
return tap<T>(res => console.log(`%c[${moment().format('HH:mm:ss.SSS')}] ${message}`, 'color: yellow;', res));
|
||||
}
|
||||
|
||||
export function toNumber(str: string): number {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user