Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
10 lines
221 B
Plaintext
10 lines
221 B
Plaintext
export function isDisposable(value) {
|
|
if (typeof value.dispose !== "function")
|
|
return false;
|
|
var disposeFun = value.dispose;
|
|
if (disposeFun.length > 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|