Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function unsetItem (value: T, map: ValueMap, tree: Sorted): boolean {
var entry: SortedSetItem|undefined;
update(arg => {
if(isDefined(arg)) entry = arg;
return void 0;
}, value, map);
if(isDefined(entry)) {
remove(entry, tree);
return true;
}
return false;
}