inital upload
This commit is contained in:
15
node_modules/optimism/lib/helpers.js
generated
vendored
Normal file
15
node_modules/optimism/lib/helpers.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
export const { hasOwnProperty, } = Object.prototype;
|
||||
export const arrayFromSet = Array.from ||
|
||||
function (set) {
|
||||
const array = [];
|
||||
set.forEach(item => array.push(item));
|
||||
return array;
|
||||
};
|
||||
export function maybeUnsubscribe(entryOrDep) {
|
||||
const { unsubscribe } = entryOrDep;
|
||||
if (typeof unsubscribe === "function") {
|
||||
entryOrDep.unsubscribe = void 0;
|
||||
unsubscribe();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=helpers.js.map
|
||||
Reference in New Issue
Block a user