mirror of
https://github.com/koel/koel
synced 2024-12-20 01:23:16 +00:00
10 lines
182 B
TypeScript
10 lines
182 B
TypeScript
|
export const use = <T>(value: T, cb: (arg: T) => void): void => {
|
||
|
if (typeof value === 'undefined' || value === null) {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
cb(value)
|
||
|
}
|
||
|
|
||
|
export const noop = () => {}
|