mirror of
https://github.com/koel/koel
synced 2024-12-14 06:32:28 +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 = () => {}
|